UNPKG

@hhgtech/hhg-components

Version:
25 lines (24 loc) 743 B
import { Dispatch, SetStateAction } from 'react'; import { LOCALE } from "../interfaces/types"; export type RedirectUrl = { url: string; target: '_blank' | '_self'; }; export type LeadGenContextType = { apiUrl?: string; siteDomain?: string; siteId?: string; locale?: LOCALE; primaryColor?: string; forceCampaign?: any; onClose?: () => void; onSubmit?: (categoryLevel?: number, categoryData?: { [k: number]: { value?: string; value_en?: string; }; }) => void; redirectUrl?: RedirectUrl; setRedirectUrl?: Dispatch<SetStateAction<RedirectUrl>>; }; export declare const LeadGenContext: import("react").Context<LeadGenContextType>;