mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
12 lines
368 B
TypeScript
12 lines
368 B
TypeScript
import { useKeyboardShortcuts } from "@/hooks/use-keyboard-shortcuts";
|
|
|
|
/**
|
|
* Wrapper that registers global keyboard shortcuts.
|
|
* Must be rendered inside a <BrowserRouter> so that
|
|
* useNavigate() works inside the hook.
|
|
*/
|
|
export function KeyboardShortcutProvider({ children }: { children: React.ReactNode }) {
|
|
useKeyboardShortcuts();
|
|
return <>{children}</>;
|
|
}
|