﻿import Dashboard from "../pages/Dashboard";
import Users from "../pages/Users";
import Roles from "../pages/Roles";
import Permissions from "../pages/Permissions";
import Devices from "../pages/Devices";
import Dictionaries from "../pages/Dictionaries";
import Logs from "../pages/Logs";
import UserRoleBinding from "../pages/UserRoleBinding";
import RolePermissionBinding from "../pages/RolePermissionBinding";

import type { MenuRoute } from "../types";

export const menuRoutes: MenuRoute[] = [
  { path: "/", label: "总览", element: <Dashboard />, perm: "menu:dashboard" },
  { path: "/users", label: "用户管理", element: <Users />, perm: "menu:users" },
  { path: "/roles", label: "角色管理", element: <Roles />, perm: "menu:roles" },
  { path: "/permissions", label: "权限管理", element: <Permissions />, perm: "menu:permissions" },
  { path: "/dictionaries", label: "字典管理", element: <Dictionaries />, perm: "menu:dict" },
  { path: "/logs", label: "日志管理", element: <Logs />, perm: "menu:logs" },
  { path: "/devices", label: "设备管理", element: <Devices />, perm: "menu:devices" },
  { path: "/user-roles", label: "用户角色绑定", element: <UserRoleBinding />, perm: "menu:user-roles" },
  { path: "/role-permissions", label: "角色权限绑定", element: <RolePermissionBinding />, perm: "menu:role-permissions" }
];
