import { z } from "zod";

export const securitySettingsSchema = z.object({
  privacyPolicy: z
    .string()
    .trim()
    .min(1, "Privacy Policy content is required.")
    .refine((val) => val.replace(/<[^>]*>/g, "").trim().length > 0, {
      message: "Privacy Policy content cannot be empty.",
    }),
  termsAndConditions: z
    .string()
    .trim()
    .min(1, "Terms and Conditions content is required.")
    .refine((val) => val.replace(/<[^>]*>/g, "").trim().length > 0, {
      message: "Terms and Conditions content cannot be empty.",
    }),
});

export type SecuritySettingsFormValues = z.infer<typeof securitySettingsSchema>;
