@it-corp/vpbank-spotlight
Version:
Command center components for react and VPbank components
17 lines (14 loc) • 382 B
JavaScript
'use client';
import { spotlightActions } from './spotlight.store.mjs';
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]];
}
export { getHotkeys };
//# sourceMappingURL=get-hotkeys.mjs.map