export const signUpValidationSchema = Joi.object<Step1FormFields>({
name: Joi.string().required(),
email: emailSchema.message(i18n.t('form-validation.email')).required(),
confirmEmail: Joi.any()
.valid(Joi.ref('email'))
.messages({ 'any.only': i18n.t('form-validation.confirm-email') }),
password: Joi.string().min(9).message(i18n.t('sign-up.validation.password')).required(),
confirmPassword: Joi.any()
.valid(Joi.ref('password'))
.messages({ 'any.only': i18n.t('form-validation.confirm-password') }),
phoneNumber: Joi.string()
.pattern(/^\([0-9]{3}\) [0-9]{3}-[0-9]{4}$/)
.message(i18n.t('form-validation.phone-number'))
.required(),
referralCode: Joi.string(),
});