import { Input } from '../../reusable/Input'; export function PhoneInput({ label, required, value, onChange, }: { label: string; required?: boolean; value: string; onChange: (val: string) => void; }) { return ( { const numericOnly = e.target.value.replace(/\D/g, ''); if (numericOnly.length <= 10) { onChange(numericOnly); } }} /> ); }