UNPKG

@slashid/react

Version:

React SDK for the /id platform

17 lines 789 B
import { Factor } from "@slashid/slashid"; import React from "react"; import { Handle } from "../../domain/types"; import { useFlowState } from "./useFlowState"; import { PayloadOptions } from "./types"; export type InternalFormContextType = { flowState: ReturnType<typeof useFlowState> | null; lastHandle?: Handle; lastFactor?: Factor; submitPayloadRef: React.MutableRefObject<PayloadOptions>; handleSubmit: (factor: Factor, handle?: Handle) => void; selectedFactor?: Factor; setSelectedFactor: React.Dispatch<React.SetStateAction<Factor | undefined>>; }; export declare const InternalFormContext: React.Context<InternalFormContextType>; export declare const useInternalFormContext: () => InternalFormContextType; //# sourceMappingURL=internal-context.d.ts.map