import { Modal } from '@/components/modal'; import styles from './shortcuts.module.css'; interface ShortcutsModalProps { onClose: () => void; show: boolean; } export function ShortcutsModal({ onClose, show }: ShortcutsModalProps) { const shortcuts = [ { keys: ['Shift', 'H'], label: 'Shortcuts List', }, { keys: ['Shift', 'P'], label: 'Presets', }, { keys: ['Shift', 'S'], label: 'Share Sounds', }, { keys: ['Shift', 'T'], label: 'Sleep Timer', }, { keys: ['Shift', 'Space'], label: 'Toggle Play', }, { keys: ['Shift', 'R'], label: 'Unselect All Sounds', }, ]; return (

Keyboard Shortcuts

{shortcuts.map(shortcut => ( ))}
); } interface RowProps { keys: Array; label: string; } function Row({ keys, label }: RowProps) { return (

{label}

{keys.map(key => ( {key} ))}
); } interface KeyProps { children: React.ReactNode; } function Key({ children }: KeyProps) { return
{children}
; }