import { z } from "zod";

export const headerItemSchema = z.object({
  label: z.string().min(1).max(64),
  href: z.string().min(1),
  external: z.boolean().default(false),
});

export const headerSchema = z.object({
  logoId: z.string().optional(),
  items: z.array(headerItemSchema),
});

export type Header = z.infer<typeof headerSchema>;
export type HeaderItem = z.infer<typeof headerItemSchema>;
