/** * Empty state shown when no file is open in the editor. * Shows keyboard shortcuts cheatsheet. */ import { useAppTranslation } from '@features/localization/renderer'; import { shortcutLabel } from '@renderer/utils/platformKeys'; import { FileCode } from 'lucide-react'; export const EditorEmptyState = (): React.ReactElement => { const { t } = useAppTranslation('team'); const shortcuts = [ { keys: shortcutLabel('⌘ P', 'Ctrl+P'), label: t('editor.shortcuts.actions.quickOpen') }, { keys: shortcutLabel('⌘ ⇧ F', 'Ctrl+Shift+F'), label: t('editor.shortcuts.actions.searchInFiles'), }, { keys: shortcutLabel('⌘ S', 'Ctrl+S'), label: t('editor.shortcuts.actions.save') }, { keys: shortcutLabel('⌘ B', 'Ctrl+B'), label: t('editor.shortcuts.actions.toggleSidebar') }, { keys: shortcutLabel('⌘ G', 'Ctrl+G'), label: t('editor.shortcuts.actions.goToLine') }, { keys: 'Esc', label: t('editor.shortcuts.actions.closeEditor') }, ]; return (
{t('editor.empty.selectFile')}