import { routes } from '@/config/routes';
import {
  PiLayoutDuotone,
  PiPhoneCallDuotone,
  PiUserPlusDuotone,
  PiCalendarPlusDuotone,
  PiUserCircleDuotone,
  PiFileDuotone,
  PiSquaresFourDuotone,
  PiStorefrontDuotone,
  PiShoppingCartDuotone,
  PiNotebookDuotone,
  PiMoneyDuotone,
  PiCoinDuotone,
  PiHandCoinsDuotone,
  PiBriefcaseDuotone,
  PiCalendarCheckDuotone,
  PiShieldCheckDuotone,
  PiUserCheckDuotone,
  PiUserGearDuotone,
  PiCalendarStarDuotone,
  PiTagDuotone,
} from 'react-icons/pi';


import { ReactNode } from "react";

export interface DropdownItem {
  name: string;
  href: string;
}

export interface MenuItem {
  name: string;
  href?: string;
  icon?: ReactNode;
  dropdownItems?: DropdownItem[];
}

export const menuItems: MenuItem[] = [
  // ================= OVERVIEW =================
  {
    name: 'Overview',
  },
  {
    name: 'Dashboard',
    href: routes.dashboard,
    icon: <PiLayoutDuotone />,
  },

  // ================= CALLS & LEADS =================
  {
    name: 'Calls & Leads',
  },
  {
    name: 'Call Logs',
    href: routes.callLog,
    icon: <PiPhoneCallDuotone />,
  },
  {
    name: 'Manage Leads',
    href: routes.lead,
    icon: <PiUserPlusDuotone />,
  },
  {
    name: 'Followup Leads',
    href: routes.followup,
    icon: <PiCalendarPlusDuotone />,
  },

  // ================= CUSTOMERS =================
  {
    name: 'Customers & Booking',
  },
  {
    name: 'Manage Customer',
    href: routes.customer,
    icon: <PiUserCircleDuotone />,
  },
  {
    name: 'Manage Documents',
    href: routes.document,
    icon: <PiFileDuotone />,
  },

  // ================= PROJECT =================
  {
    name: 'Projects & Construction',
  },
  {
    name: 'Manage Project',
    href: routes.project,
    icon: <PiSquaresFourDuotone />,
  },

  // ================= VENDOR =================
  {
    name: 'Procurements & Vendor',
  },
  {
    name: 'Manage Vendors',
    href: routes.vendor,
    icon: <PiStorefrontDuotone />,
  },
  {
    name: 'Manage Procurement',
    href: routes.procurement,
    icon: <PiShoppingCartDuotone />,
  },

  // ================= INVENTORY =================
  {
    name: 'Inventory',
  },
  {
    name: 'Manage Inventory',
    href: routes.inventory,
    icon: <PiNotebookDuotone />,
  },

  // ================= ACCOUNTS =================
  {
    name: 'Accounts & Finance',
  },
  {
    name: 'Income & Expenses',
    href: routes.income,
    icon: <PiMoneyDuotone />,
  },
  {
    name: 'Petty Cash',
    href: routes.cash,
    icon: <PiCoinDuotone />,
  },

  // ================= ASSETS =================
  {
    name: 'Assets',
  },
  {
    name: 'Manage Assets',
    href: routes.asset,
    icon: <PiHandCoinsDuotone />,
  },

  // ================= LABOUR =================
  {
    name: 'Labour & Attendance',
  },
  {
    name: 'Manage Labour',
    href: routes.labour,
    icon: <PiBriefcaseDuotone />,
  },
  {
    name: 'Labour Attendance',
    href: routes.attendance,
    icon: <PiCalendarCheckDuotone />,
  },

  // ================= QUALITY =================
  {
    name: 'Quality & Inspection',
  },
  {
    name: 'Manage Quality',
    href: routes.quality,
    icon: <PiShieldCheckDuotone />,
  },

  // ================= USERS =================
  {
    name: 'Users & Roles',
  },
  {
    name: 'Manage Users',
    href: routes.roles,
    icon: <PiUserCheckDuotone />,
  },
  // ================== SETTINGS ============
  {
    name: 'Settings',
  },
  {
    name: 'Lead Source',
    href: routes.leadSource,
    icon: <PiSquaresFourDuotone />,
  },
  {
    name: 'Lead Status',
    href: routes.leadStatus,
    icon: <PiUserGearDuotone />,
  },
  {
    name: 'Followup Status',
    href: routes.followupStatus,
    icon: <PiCalendarStarDuotone />,
  },
  {
    name: 'Tags',
    href: routes.tag,
    icon: <PiTagDuotone />,
  },
];