UNPKG

@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.

18 lines 632 B
import { useShallow } from 'zustand/shallow'; import { createWithEqualityFn } from 'zustand/traditional'; export const sendToWalletStore = createWithEqualityFn((set) => ({ showSendToWallet: false, setSendToWallet: (value) => set({ showSendToWallet: value, }), }), Object.is); export const useSendToWalletStore = (selector) => { return sendToWalletStore(useShallow(selector)); }; export const useSendToWalletActions = () => { const actions = useSendToWalletStore((store) => ({ setSendToWallet: store.setSendToWallet, })); return actions; }; //# sourceMappingURL=useSendToWalletStore.js.map