···11+import { z } from "zod";
22+33+export const preferencesSchema = z
44+ .object({
55+ combinedRegions: z.boolean().nullable().default(false).optional(),
66+ // ... other settings to store user preferences
77+ // accessible via document.cookie in the client and cookies() on the server
88+ })
99+ .optional();
1010+1111+export type PreferredSettings = z.infer<typeof preferencesSchema>;