@adyen/kyc-components
Version:
`adyen-kyc-components` provides the required pieces to build an onboarding flow based on a legal entity. To onboard and verify users, you need to create a user interface (UI) to collect user data. To speed up building your integration, Adyen offers onboar
10 lines (9 loc) • 410 B
TypeScript
import type { Dispatch, StateUpdater } from 'preact/hooks';
type UseStateFromPropParams<T> = {
initialValue?: T;
passedValue: T;
skipUpdate?: boolean;
};
type UseStateFromPropReturn<T> = [T | undefined, Dispatch<StateUpdater<T | undefined>>];
export declare const useStateFromProp: <T>({ initialValue, passedValue, skipUpdate, }: UseStateFromPropParams<T>) => UseStateFromPropReturn<T>;
export {};