import { HelpCircle } from "lucide-react"; import { useState, useEffect } from "react"; import { formatShortcut } from "@/utils/platformUtils"; export function KeyboardShortcutsHelp() { const [shortcuts, setShortcuts] = useState({ delete: 'Ctrl + D', pan: 'Shift + Ctrl + Scroll', zoom: 'Ctrl + Scroll' }); useEffect(() => { Promise.all([ formatShortcut(['mod', 'D']), formatShortcut(['shift', 'mod', 'Scroll']), formatShortcut(['mod', 'Scroll']) ]).then(([deleteKey, panKey, zoomKey]) => { setShortcuts({ delete: deleteKey, pan: panKey, zoom: zoomKey }); }); }, []); return (
Keyboard Shortcuts
Add Zoom Z
Add Annotation A
Add Keyframe F
Add Trim T
Delete Selected {shortcuts.delete}
Pan Timeline {shortcuts.pan}
Zoom Timeline {shortcuts.zoom}
Pause/Play Space
); }