feat: add Ink-based fullscreen TUI components
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import React from 'react';
|
||||
import { Box, Text } from 'ink';
|
||||
|
||||
export interface StatusBarProps {
|
||||
sessionId: string;
|
||||
messageCount: number;
|
||||
model: string;
|
||||
}
|
||||
|
||||
export function StatusBar({ sessionId, messageCount, model }: StatusBarProps): React.ReactElement {
|
||||
return (
|
||||
<Box borderStyle="single" borderColor="gray" paddingX={1}>
|
||||
<Box flexGrow={1}>
|
||||
<Text color="cyan">Flynn</Text>
|
||||
<Text color="gray"> | </Text>
|
||||
<Text color="gray">Session: </Text>
|
||||
<Text>{sessionId}</Text>
|
||||
</Box>
|
||||
<Box>
|
||||
<Text color="gray">Messages: </Text>
|
||||
<Text>{messageCount}</Text>
|
||||
<Text color="gray"> | </Text>
|
||||
<Text color="gray">Model: </Text>
|
||||
<Text color="green">{model}</Text>
|
||||
</Box>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user