@empoleon/spotlight
Version:
Command center components for react and Empoleon
18 lines (14 loc) • 405 B
JavaScript
;
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