export const DivisionMenu = 'division';

export interface PHeader {
   logo: string;
   user: {
      name: string;
      image?: string;
      sub?: string | JSX.Element;
   };
   menuUserBar?: {
      title: string | JSX.Element;
      route: string;
   }[];
   menu: ({
      title: string | JSX.Element;
      route: string;
      titleCategory?: boolean;
      opened?: boolean; // Only test: Ativar menu
      subMenu?: {
         title: string | JSX.Element;
         route: string;
      }[];
   } | 'division')[];
   actionsElements?: JSX.Element;
   homeLink?: string;
   contentBeforeUser?: JSX.Element;
   __openUserMenuInfo?: boolean; // Only test: Ativar modal do usuário
   __menuMobileOpen?: boolean; // Only test: Abrir menu mobile
}

export interface PHeaderChild extends PHeader {
   openUserMenuInfo: boolean;
   menuMobile: boolean;
   closeUserMenuInfo: () => any;
   toggleUserMenuInfo: () => any;
   toggleMenuMobile: () => any;
}

export interface SHeader {
   // Menu do usuário aberto
   openUserMenuInfo: boolean;
   menuOpen: boolean;
}
