import { boolean, object } from "yup";
export const businessTermsConditionsSchema = (allowOptionalFields) => {
    const schema = object({
        accepted: boolean()
            .oneOf([true], 'You must agree to the terms and conditions to continue')
            .required('You must agree to the terms and conditions to continue')
    });
    const easySchema = object({
        accepted: boolean().nullable()
    });
    return allowOptionalFields ? easySchema : schema;
};
