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 >; function PhoneInput({ control, name, ...rest }: PhoneInputProps) { return ( ); } export default PhoneInput;