import React from "react";
import Icon from "@ant-design/icons";
import { DageRouteItem } from "./types";
import { ReactComponent as SettingIcon } from "@/assets/icons/systems.svg";
import { ReactComponent as AssessmentIcon } from "@/assets/icons/icon_check.svg";

export const DEFAULT_MENU: DageRouteItem[] = [
  {
    path: "/assessment",
    title: "考核设置",
    icon: <Icon component={AssessmentIcon} />,
    redirect: "/assessment/index",
    children: [
      {
        path: "/assessment/index",
        title: "指标设置",
        Component: React.lazy(() => import("../pages/Assessment/Index")),
        children: [
          {
            hide: true,
            path: "/assessment/index/create",
            title: "新增指标",
            Component: React.lazy(
              () => import("../pages/Assessment/Index/CreateOrEdit")
            ),
          },
        ],
      },
    ],
  },
];

export const DEFAULT_ADMIN_MENU: DageRouteItem[] = [
  {
    path: "/setting",
    title: "系统设置",
    icon: <Icon component={SettingIcon} />,
    children: [
      {
        path: "/setting/user",
        title: "用户管理",
        Component: React.lazy(() => import("../pages/User")),
      },
      {
        path: "/setting/log",
        title: "操作日志",
        Component: React.lazy(() => import("../pages/Log")),
      },
    ],
  },
];

export * from "./types";
