﻿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 Tenants from "../pages/Tenants";
import Orgs from "../pages/Orgs";
import UserRoleBinding from "../pages/UserRoleBinding";
import RolePermissionBinding from "../pages/RolePermissionBinding";
import SysParams from "../pages/SysParams";
import PlatformSettings from "../pages/PlatformSettings";
import Profile from "../pages/Profile";
import SpeakerReg from "../pages/business/SpeakerReg";
import HotWords from "../pages/business/HotWords";
import PromptTemplates from "../pages/business/PromptTemplates";

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

export const menuRoutes: MenuRoute[] = [
  { path: "/", label: "总览", element: <Dashboard />, perm: "menu:dashboard" },
  { path: "/profile", label: "个人中心", element: <Profile /> },
  { path: "/tenants", label: "租户管理", element: <Tenants />, perm: "menu:tenants" },
  { path: "/orgs", label: "组织管理", element: <Orgs />, perm: "menu:orgs" },
  { 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: "/params", label: "系统参数", element: <SysParams />, perm: "menu:params" },
  { path: "/platform-settings", label: "平台设置", element: <PlatformSettings />, perm: "menu:platform" },
  { 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" },
  { path: "/speaker-reg", label: "声纹注册", element: <SpeakerReg />, perm: "menu:speaker" },
  { path: "/hotwords", label: "热词管理", element: <HotWords />, perm: "menu:hotword" },
  { path: "/prompts", label: "总结模板", element: <PromptTemplates />, perm: "menu:prompt" }
];
