@lifi/widget
Version:
LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
13 lines (12 loc) • 464 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.useSettings = void 0;
const shallow_1 = require("zustand/shallow");
const useSettingsStore_1 = require("./useSettingsStore");
const useSettings = (keys) => {
return (0, useSettingsStore_1.useSettingsStore)((state) => keys.reduce((values, key) => {
values[key] = state[key];
return values;
}, {}), shallow_1.shallow);
};
exports.useSettings = useSettings;