'use client';

import { useGlobalKeyboardShortcuts } from '@/hooks/useGlobalKeyboardShortcuts';
import { useKeyboardShortcutsModal } from '@/contexts/KeyboardShortcutsContext';
import { KeyboardShortcutsModal } from '@/components/ui/KeyboardShortcutsModal';

export function KeyboardShortcuts() {
  useGlobalKeyboardShortcuts();
  const { isOpen, shortcuts, closeModal } = useKeyboardShortcutsModal();

  return (
    <KeyboardShortcutsModal
      isOpen={isOpen}
      onClose={closeModal}
      shortcuts={shortcuts}
      title="Raccourcis clavier"
    />
  );
}
