import PhoneInput from 'react-phone-number-input';

export default function CustomPhoneInput({ value, valueOnChange, className, placeholder, ...rest }) {
   return (
      <PhoneInput
         {...rest}
         value={value}
         onChange={valueOnChange}
         initialValueFormat="national"
         international
         countryCallingCodeEditable={false}
         defaultCountry="EG"
         className={className}
         placeholder={placeholder}
      />
   );
}