UNPKG

@hhgtech/hhg-components

Version:
41 lines (40 loc) 1.41 kB
import { Dispatch, MutableRefObject, SetStateAction } from 'react'; import { LOCALE } from "../../types"; import { OtpData } from "./otpBlock"; export type ThankyouType = { title: string; titleAlign?: string; subtitle: string; subtitleAlign?: string; link: string; linkNewTab?: boolean; linkText: string; image?: string; }; export type LeadGenComponentContextType = { formRef: { current: HTMLFormElement | null; }; setFormRef: Dispatch<SetStateAction<HTMLFormElement | null>>; campaignId: number; campaign_subot_id: number[]; heading: string; description: string; showOtpPhone: OtpData | null; setShowOtpPhone: Dispatch<SetStateAction<OtpData | null>>; showThankyou: ThankyouType; setShowThankyou: Dispatch<SetStateAction<ThankyouType | null>>; listBlockAdded: any; textBlocks: any; actionBlocks: any; leadFormConfig: any; validatingEmailRef: MutableRefObject<boolean>; validatingPhoneRef: MutableRefObject<boolean>; locale?: LOCALE; onClose?: () => void; onOtherSubmit?: () => void; onSubmit?: (currentForm: HTMLFormElement, values: Record<string, any>) => void; showEmpty?: boolean; setShowEmpty?: Dispatch<SetStateAction<boolean>>; }; export declare const LeadGenComponentContext: import("react").Context<LeadGenComponentContextType>;