@hhgtech/hhg-components
Version:
Hello Health Group common components
28 lines (27 loc) • 966 B
TypeScript
import React, { Dispatch, SetStateAction } from 'react';
import { LOCALE, UserInfo } from "../interfaces/types";
export declare const NewLeadPopup: ({ campaign, action, onSubmit, onClose, showThankyou, locale, showEmpty, setShowEmpty, userInfo, }: {
campaign: any;
action?: string;
onSubmit?: (currentForm: HTMLFormElement, values?: Record<string, any>, categoryLevel?: number, categoryData?: {
[k: number]: {
value?: string;
value_en?: string;
};
}) => void;
onClose?: () => void;
showThankyou?: {
title: string;
titleAlign?: string;
subtitle: string;
subtitleAlign?: string;
link: string;
linkNewTab?: boolean;
linkText: string;
image?: string;
};
locale?: LOCALE;
showEmpty?: boolean;
setShowEmpty?: Dispatch<SetStateAction<boolean>>;
userInfo?: UserInfo | null;
}) => React.JSX.Element;