mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-04 20:05:38 +08:00
29 lines
754 B
TypeScript
29 lines
754 B
TypeScript
type CodeEditorFooterProps = {
|
|
content: string;
|
|
linesLabel: string;
|
|
charactersLabel: string;
|
|
shortcutsLabel: string;
|
|
};
|
|
|
|
export default function CodeEditorFooter({
|
|
content,
|
|
linesLabel,
|
|
charactersLabel,
|
|
shortcutsLabel,
|
|
}: CodeEditorFooterProps) {
|
|
return (
|
|
<div className="flex flex-shrink-0 items-center justify-between border-t border-border bg-muted px-3 py-1.5">
|
|
<div className="flex items-center gap-3 text-xs text-gray-600 dark:text-gray-400">
|
|
<span>
|
|
{linesLabel} {content.split('\n').length}
|
|
</span>
|
|
<span>
|
|
{charactersLabel} {content.length}
|
|
</span>
|
|
</div>
|
|
|
|
<div className="text-xs text-gray-500 dark:text-gray-400">{shortcutsLabel}</div>
|
|
</div>
|
|
);
|
|
}
|