import { motion } from "framer-motion"; import { springs, staggerContainer, fadeSlideUp } from "@/lib/motion"; import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, } from "@/components/ui/dialog"; interface ShortcutHelpModalProps { open: boolean; onOpenChange: (open: boolean) => void; } const SHORTCUT_GROUPS = [ { category: "Navigation", shortcuts: [ { key: "Ctrl+K", description: "Open command palette" }, { key: "?", description: "Show keyboard shortcuts" }, { key: "Escape", description: "Close modal / cancel" }, ], }, { category: "Board", shortcuts: [ { key: "Ctrl+Z", description: "Undo" }, { key: "Ctrl+Shift+Z", description: "Redo" }, ], }, ]; export function ShortcutHelpModal({ open, onOpenChange }: ShortcutHelpModalProps) { return ( Keyboard Shortcuts Quick reference for all keyboard shortcuts. {SHORTCUT_GROUPS.map((group) => (

{group.category}

{group.shortcuts.map(({ key, description }) => (
{description} {key}
))}
))}
); }