UNPKG

@dynamic-labs/sdk-react-core

Version:

A React SDK for implementing wallet web3 authentication and authorization to your website.

13 lines (12 loc) 605 B
import { FC, MutableRefObject, PropsWithChildren } from 'react'; import { ParsedCountry } from 'react-international-phone'; export type FieldsStateContextType = { /** * Allows telling which country is selected, so that we can use it to detect if phone * number is too short. */ selectedPhoneCountry: MutableRefObject<ParsedCountry | undefined>; }; export declare const FieldsStateContext: import("react").Context<FieldsStateContextType | undefined>; export declare const FieldsStateProvider: FC<PropsWithChildren>; export declare const useFieldsState: () => FieldsStateContextType;