Openstatus www.openstatus.dev
at 2ca8eef2cba0abee65eeeec7c032f54698b5548a 11 lines 364 B view raw
1import { z } from "zod"; 2 3export const preferencesSchema = z 4 .object({ 5 combinedRegions: z.boolean().nullable().default(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>;