import { NavLink } from "react-router-dom";

import { UsersMenuIcon } from "./icons/SidebarMenus";
import { Person, CurrencyYen, Receipt, Gavel } from "@mui/icons-material";
import { PATH } from "./constants";
import { IMenuItem } from "../Menu/types";

const menu: IMenuItem[] = [
  {
    name: "用户中心",
    id: "saturn",
    icon: UsersMenuIcon,
    forceDisplay: true,
    children: [
      {
        component: NavLink,
        id: "saturnUserInfo",
        name: "用户信息",
        to: PATH.USERINFO,
        icon: Person,
        forceDisplay: true,
      },
      {
        component: NavLink,
        id: "costManage",
        name: "费用管理",
        to: PATH.COST_MANAGE,
        icon: CurrencyYen,
        forceDisplay: true,
      },
      {
        component: NavLink,
        id: "invoiceManage",
        name: "发票管理",
        to: PATH.INVOICE_MANAGE,
        icon: Receipt,
        forceDisplay: true,
      },
      {
        component: NavLink,
        id: "contractManage",
        name: "合同管理",
        to: PATH.CONTRACT_MANAGE,
        icon: Gavel,
        forceDisplay: true,
      },
    ],
  },
];

export default menu;
