import { z } from "zod" import { Lang } from "@/constants/languages" import { ImageVaultAsset } from "@/types/components/imageVaultImage" export const validateContentPageSchema = z.object({ content_page: z.object({ title: z.string(), header: z.object({ heading: z.string(), preamble: z.string(), }), hero_image: z.any().nullable(), system: z.object({ uid: z.string(), locale: z.nativeEnum(Lang), created_at: z.string(), updated_at: z.string(), }), }), }) export type ContentPageDataRaw = z.infer type ContentPageRaw = ContentPageDataRaw["content_page"] export type ContentPage = Omit & { hero_image?: ImageVaultAsset }