Openstatus www.openstatus.dev
at 4c0f4c00a38753a5d0dfd7e7b7b7706dec6f1503 11 lines 365 B view raw
1import { z } from "zod"; 2 3export const preferencesSchema = z 4 .object({ 5 combinedRegions: z.boolean().nullable().prefault(false).optional(), 6 // ... other settings to store user preferences 7 // accessible via document.cookie in the client and cookies() on the server 8 }) 9 .optional(); 10 11export type PreferredSettings = z.infer<typeof preferencesSchema>;