UNPKG

@slashid/react

Version:

React SDK for the /id platform

34 lines 1.32 kB
import { ReactNode } from "react"; import { TextConfig } from "../components/text/constants"; import { FactorConfiguration } from "../domain/types"; export type Logo = string | React.ReactNode; export interface IConfigurationContext { text: TextConfig; factors: FactorConfiguration[]; logo: Logo; storeLastHandle: boolean; storeLastFactor: boolean; showBanner: boolean; defaultCountryCode: string; supportURL: undefined | string; alternativeAuthURL: undefined | string; } export declare const initialContextValue: IConfigurationContext; export declare const ConfigurationContext: import("react").Context<IConfigurationContext>; type Props = { text?: Partial<TextConfig>; factors?: FactorConfiguration[]; logo?: Logo; storeLastHandle?: boolean; storeLastFactor?: boolean; showBanner?: boolean; defaultCountryCode?: string; /** If defined the form in the error state will render a CTA with this link */ supportURL?: string; /** If defined an extra prompt & CTA will be rendered in "SelfRegistrationNotAllowed" error state to let end users navigate to another page */ alternativeAuthURL?: string; children: ReactNode; }; export declare const ConfigurationProvider: React.FC<Props>; export {}; //# sourceMappingURL=config-context.d.ts.map