stone-kit
Version:
uikit for redesign
40 lines (39 loc) • 1.39 kB
TypeScript
interface IModalFormProps {
isFormOpen: boolean;
setIsFormOpen: (isOpen: boolean) => void;
submitHandler: (data: IFormPageInputs) => void;
modalWidth?: string;
isPhone?: boolean;
title: string;
isEmail?: boolean;
telegramLink?: string;
isTextArea?: boolean;
subTitle: string;
advCheckBox?: {
text: string;
isRequired: boolean;
} | undefined | null;
textAreaPlaceholder?: string;
rowsTextArea?: number;
isRequiredPhone?: boolean;
isNews?: boolean;
isRequiredEmail?: boolean;
isRequiredPhoneOrEmail?: boolean;
isAdvCheckBox?: boolean;
telegramClickHandler?: () => void;
addTitleClassName?: string;
createPortalObj?: {
domNode: HTMLElement | null;
key?: string | null | undefined;
};
}
type IFormPageInputs = {
phone: string;
name: string;
email?: string;
personalCheckBox: boolean;
advCheckBox?: boolean;
textarea?: string;
};
export declare const ModalForm: ({ isFormOpen, setIsFormOpen, isNews, title, isEmail, isPhone, isTextArea, telegramLink, isRequiredPhone, isRequiredEmail, isRequiredPhoneOrEmail, textAreaPlaceholder, subTitle, submitHandler, modalWidth, rowsTextArea, advCheckBox, isAdvCheckBox, addTitleClassName, createPortalObj, telegramClickHandler, }: IModalFormProps) => import("react/jsx-runtime").JSX.Element | null;
export {};