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.

13 lines (11 loc) 364 B
import { shallow } from 'zustand/shallow' import type { FormType } from '../form/types.js' import { useChainOrderStore } from './ChainOrderStore.js' export const useChainOrder = ( type: FormType ): [number[], (chainId: number, type: FormType) => void] => { return useChainOrderStore( (state) => [state.chainOrder[type], state.setChain], shallow ) }