@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.
9 lines (7 loc) • 301 B
text/typescript
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])
}