UNPKG

mt-flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

16 lines (15 loc) 516 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const zod_1 = require("zod"); const DashMenuItemSchema = zod_1.z.object({ id: zod_1.z.number(), link: zod_1.z.string(), icon: zod_1.z.string(), title: zod_1.z.string(), // children: z.lazy(z.array(MenuItemSchema).optional()), children: zod_1.z.lazy(() => zod_1.z.array(DashMenuItemSchema)), }); const DashConfigSchema = zod_1.z.object({ title: zod_1.z.string(), menus: zod_1.z.array(DashMenuItemSchema) });