/** * Empty state shown when no file is open in the editor. * Shows keyboard shortcuts cheatsheet. */ import { shortcutLabel } from '@renderer/utils/platformKeys'; import { FileCode } from 'lucide-react'; const SHORTCUTS = [ { keys: shortcutLabel('⌘ P', 'Ctrl+P'), label: 'Quick Open' }, { keys: shortcutLabel('⌘ ⇧ F', 'Ctrl+Shift+F'), label: 'Search in Files' }, { keys: shortcutLabel('⌘ S', 'Ctrl+S'), label: 'Save' }, { keys: shortcutLabel('⌘ B', 'Ctrl+B'), label: 'Toggle Sidebar' }, { keys: shortcutLabel('⌘ G', 'Ctrl+G'), label: 'Go to Line' }, { keys: 'Esc', label: 'Close Editor' }, ]; export const EditorEmptyState = (): React.ReactElement => { return (

Select a file from the tree to edit

{SHORTCUTS.map((s) => (
{s.label} {s.keys}
))}
); };