@hhgtech/hhg-components
Version:
Hello Health Group common components
22 lines (21 loc) • 756 B
TypeScript
import React from 'react';
import { Country } from 'react-phone-number-input';
export declare const formPhoneType: {
readonly ZALO: "Zalo";
readonly WHATS_APP: "Whatsapp";
};
export type TFormPhoneType = (typeof formPhoneType)[keyof typeof formPhoneType];
export type TCollectPhoneFormData = {
phone: string;
countryCode: Country;
callingCode: string;
};
export type CollectPhoneFormProps = {
onSubmit: (value: TCollectPhoneFormData) => void;
title?: string;
formType?: TFormPhoneType;
isLoading?: boolean;
locale?: string;
};
export declare function CollectPhoneForm({ onSubmit, title, formType, isLoading, locale, }: CollectPhoneFormProps): React.JSX.Element;
export default CollectPhoneForm;