@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.
10 lines (9 loc) • 382 B
JavaScript
import { shallow } from 'zustand/shallow';
import { useSettingsStore } from './useSettingsStore';
export const useAppearance = () => {
const [appearance, setValue] = useSettingsStore((state) => [state.appearance, state.setValue], shallow);
const setAppearance = (appearance) => {
setValue('appearance', appearance);
};
return [appearance, setAppearance];
};