export type Menu = {
  leftItems: MenuItem[]
  rightItems: MenuItem[]
}

export type SimpleItemProps = {
  text: string;
  href: string;
  type: 'default' | 'button';
  id?: string | null;
  blockName?: string | null;
  blockType: 'simple-item';
  onItemClick?: () => void;
}

export type MegaMenuItemProps = {
  text: string;
  quote: string;
  source: string;
  groups: {
    title: string;
    items: {
      title: string;
      description: string;
      href: string;
      id?: string | null;
    }[];
    id?: string | null;
  }[];
  id?: string | null;
  blockName?: string | null;
  blockType: 'mega-menu';
  onItemClick?: () => void;
}

export type MenuItem = SimpleItemProps | MegaMenuItemProps;