UNPKG

@mantine/spotlight

Version:

Command center components for react and Mantine

13 lines (12 loc) 426 B
"use client"; import { spotlightActions } from "./spotlight.store.mjs"; //#region packages/@mantine/spotlight/src/get-hotkeys.ts function getHotkeys(hotkeys, store) { if (!hotkeys) return []; const open = () => spotlightActions.open(store); if (Array.isArray(hotkeys)) return hotkeys.map((hotkey) => [hotkey, open]); return [[hotkeys, open]]; } //#endregion export { getHotkeys }; //# sourceMappingURL=get-hotkeys.mjs.map