export const isValidPhoneNumber = (value: any, helper: any) => { if (value.length == 10) { return value; } return helper.error('phone.invalid'); };