added rankings but ugly and tired

This commit is contained in:
2025-10-13 16:44:48 +02:00
parent 1139cfd5f0
commit 174e3e94ed
18 changed files with 721 additions and 51 deletions

View File

@@ -0,0 +1,15 @@
import React from 'react';
import { Box, Text } from 'ink';
export function MemoSection({ latestMemo, width, height }) {
const lines = latestMemo.split('\n');
const maxLines = Math.max(height - 28, 4);
return (
<Box flexDirection="column" marginTop={1} width={width}>
<Text color="magenta">Liste de courses</Text>
{lines.slice(0, maxLines).map((line, index) => (
<Text key={index} wrap="truncate-end">{line}</Text>
))}
</Box>
);
}