import { routes } from "@/lib/routes";
import {
  Users,
  Settings,
  LayoutGrid,
  LucideIcon,
  Warehouse,
  Building,
} from "lucide-react";

type Submenu = {
  href: string;
  label: string;
  active?: boolean;
};

type Menu = {
  href: string;
  label: string;
  active?: boolean;
  icon: LucideIcon;
  submenus?: Submenu[];
};

type Group = {
  groupLabel: string;
  menus: Menu[];
};

export function getMenuList(): Group[] {
  return [
    {
      groupLabel: "",
      menus: [
        {
          href: routes.DASHBOARD_ROUTE,
          label: "Dashboard",
          icon: LayoutGrid,
        }
      ]
    },
    {
      groupLabel: "Contents",
      menus: [
        {
            href : '' , 
            label : 'Company',
            icon : Building,
            submenus : [
              {
                href: routes.DASHBOARD_ROUTE,
                label: "All Branch"
              },
              {
                href: routes.DASHBOARD_ROUTE,
                label: "All Department"
              },
            ]
        },
        {
          href: "",
          label: "Employees",
          icon: Users,
          submenus: [
            {
              href: routes.DASHBOARD_ROUTE,
              label: "All Employees"
            },
            
          ]
        },
        {
          href : '' ,
          label : 'Assets' , 
          icon : Warehouse ,
          submenus : [
            {
              label : 'All Assets' ,
              href : routes.DASHBOARD_ROUTE
            } ,
            {
              label : 'Categories' ,
              href : routes.DASHBOARD_ROUTE 
            } ,
            {
              label : 'Usage',  
              href : routes.DASHBOARD_ROUTE
            } , 
          ]
        }

      ]
    },
    
    {
      groupLabel: "Settings",
      menus: [
        // {
        //   href: "/users",
        //   label: "Users",
        //   icon: UserCog
        // },
        {
          href: "/account",
          label: "Account",
          icon: Settings
        }
      ]
    }
  ];
}