import { Badge } from '@/components/ui/badge' import { Kbd, KbdGroup } from '@/components/ui/kbd' import { KeyboardMetaKeyIcon } from '@/components/ui/keyboard-keys' import { SettingsPanelDescription, SettingsPanelTitle, SettingsPanelHeader, SettingsPanelContent } from '@/components/ui/settings-dialog' import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table' import _ from '@/lib/translate' import { ArrowRightLeftIcon, HistoryIcon, LandmarkIcon, OptionIcon, ReceiptIcon, SaveIcon, SettingsIcon, ZapIcon } from 'lucide-react' const Shortcuts = [ { shortcut: B, action: { icon: , label: _("Bank Entry"), description: _("Record a bank journal entry for expenses, income or split transactions") } }, { shortcut: P, action: { icon: , label: _("Record Payment"), description: _("Record a payment against a customer or supplier") } }, { shortcut: I, action: { icon: , label: _("Transfer"), description: _("Record a transfer between two bank accounts") } }, { shortcut: R, action: { icon: , label: _("Accept Matching Rule"), description: _("Accept the rule for the selected transaction") } }, { shortcut: S, action: { icon: , label: _("Save"), description: _("Save the currently opened form") } }, { shortcut: Z, action: { icon: , label: _("Reconciliation History"), description: _("View all reconciliation actions taken in this session") } }, { shortcut: G, action: { icon: , label: _("Settings"), description: _("Open the settings dialog") } } ] const KeyboardShortcuts = () => { return ( <> {_("Keyboard Shortcuts")} {_("Get around the system quickly with keyboard shortcuts")}

{_("Transaction actions work when one or more unreconciled transactions are selected.")}
{_("To select more than one transaction at a time, press and hold the shift key.")}

{_("Shortcut")} {_("Action")} {_("Description")} {Shortcuts.map((shortcut) => ( {shortcut.shortcut} {shortcut.action.icon} {shortcut.action.label}

{shortcut.action.description}

))}
) } export default KeyboardShortcuts