import BasePhoneInput, { Props } from "react-phone-number-input/react-hook-form"; import "react-phone-number-input/style.css"; export type PhoneInputProps = Props< { value: string; id: string; placeholder: string; required: boolean; }, FormValues > & { onChange?: (e: any) => void }; function PhoneInput({ control, name, className, onChange, ...rest }: PhoneInputProps) { return ( ); } export default PhoneInput;