@@ -1,8 +1,18 @@
1+import { configure, GlobalHotKeys } from "react-hotkeys";
12// Ensures the root container is always 100vw, min 100vh, and centers all children along the y-axis
2−export default function Container({children}) {
3− return (
4− <div className='flex flex-col min-h-screen w-screen items-center'>
5− {children}
6− </div>
7− )
8− }
3+export default function Container({ toggleSearch, children }) {
4+ const keyMap = { search: ["command+k", "ctrl+k", "esc"] };
5+ const handlers = { search: toggleSearch };
6+ configure({
7+ ignoreTags: [],
8+ });
9+
10+ return (
11+ <>
12+ <GlobalHotKeys keyMap={keyMap} handlers={handlers} />
13+ <div className="flex flex-col min-h-screen w-screen items-center">
14+ {children}
15+ </div>
16+ </>
17+ );
18+}