UNPKG

@hhgtech/hhg-components

Version:
20 lines (19 loc) 851 B
import React from 'react'; import { ButtonProps } from "../../mantine"; import { PhoneProps } from "../../mantine/phone"; import { OnboardingItemShareProps } from "../stepRenderer"; export type OnboardingFormProps = { onClose(): void; onSubmit?(phone: string): void | Promise<string | undefined | void>; canSkip?: boolean; defaultCountry?: PhoneProps['defaultCountry']; customFormTexts?: { heading?: string; description?: string; }; submitLabel?: string; submitProps?: ButtonProps; skipProps?: ButtonProps; isWhatsApp?: boolean; } & Partial<OnboardingItemShareProps>; export declare const DefaultOnboardingForm: ({ onClose, onSubmit: _onSubmit, canSkip, customFormTexts, isActive, submitProps, submitLabel, skipProps, isWhatsApp, }: OnboardingFormProps) => React.JSX.Element;