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.

16 lines (14 loc) 414 B
import { shallow } from 'zustand/shallow' import type { ValidationProps } from './types.js' import { useFormStore } from './useFormStore.js' export const useValidation = (): Omit<ValidationProps, 'validation'> => { const [isValid, isValidating, errors] = useFormStore( (store) => [store.isValid, store.isValidating, store.errors], shallow ) return { isValid, isValidating, errors, } }