@it-corp/vpbank-spotlight
Version:
Command center components for react and VPbank components
19 lines (15 loc) • 421 B
JavaScript
'use client';
;
var spotlight_store = require('./spotlight.store.cjs');
function getHotkeys(hotkeys, store) {
if (!hotkeys) {
return [];
}
const open = () => spotlight_store.spotlightActions.open(store);
if (Array.isArray(hotkeys)) {
return hotkeys.map((hotkey) => [hotkey, open]);
}
return [[hotkeys, open]];
}
exports.getHotkeys = getHotkeys;
//# sourceMappingURL=get-hotkeys.cjs.map