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.

17 lines (14 loc) 451 B
import { shallow } from 'zustand/shallow' import type { ValidationActions } from './types.js' import { useFormStore } from './useFormStore.js' export const useValidationActions = () => { const actions = useFormStore<ValidationActions>( (store) => ({ addFieldValidation: store.addFieldValidation, triggerFieldValidation: store.triggerFieldValidation, clearErrors: store.clearErrors, }), shallow ) return actions }