Files
web/server/routers/contentstack/loyaltyPage/input.ts
2024-04-29 14:02:03 +02:00

11 lines
261 B
TypeScript

import { z } from "zod"
import { Lang } from "@/constants/languages"
const langs = Object.keys(Lang) as [keyof typeof Lang]
export const getLoyaltyPageInput = z.object({
href: z.string().min(1, { message: "href is required" }),
locale: z.enum(langs),
})