import { ScrollArea, Badge } from '@janhq/joi' const availableHotkeys = [ { combination: 'N', modifierKeys: [isMac ? '⌘' : 'Ctrl'], description: 'Create a new thread', }, { combination: 'B', modifierKeys: [isMac ? '⌘' : 'Ctrl'], description: 'Toggle left panel', }, { combination: 'Shift B', modifierKeys: [isMac ? '⌘' : 'Ctrl'], description: 'Toggle right panel', }, { combination: 'Shift Backspace', modifierKeys: [isMac ? '⌘' : 'Ctrl'], description: 'Delete current active thread', }, { combination: 'Shift C', modifierKeys: [isMac ? '⌘' : 'Ctrl'], description: 'Clean current active thread', }, { combination: ',', modifierKeys: [isMac ? '⌘' : 'Ctrl'], description: 'Navigate to settings', }, { combination: 'Enter', description: 'Send a message (in input field)', }, { combination: 'Shift Enter', description: 'Insert a new line (in input field)', }, ] const Hotkeys = () => { return (
Combination
Description
{availableHotkeys.map((shortcut, index) => { return (
{`${shortcut.modifierKeys?.[0] ?? ''} ${ shortcut.combination }`}

{shortcut.description}

) })}
) } export default Hotkeys