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

import { UsersMenuIcon } from "./icons/SidebarMenus";
import { AccountBalanceWallet } from "@mui/icons-material";
import { PATH } from "./constants";
import { IMenuItem } from "../Menu/types";

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

export default menu;
