import { MENU_CODES, PERMISSIONS } from "@/app/permissions";

export const roomRoutes = [
    {
        label: "房间列表",
        loader: () => import("./pages/RoomListPage.jsx").then((module) => module.RoomListPage),
        menuCode: MENU_CODES.roomList,
        pageKey: "room-list",
        path: "/rooms",
        permission: PERMISSIONS.roomView,
    },
    {
        label: "房间置顶",
        loader: () => import("./pages/RoomPinsPage.jsx").then((module) => module.RoomPinsPage),
        menuCode: MENU_CODES.roomPins,
        pageKey: "room-pins",
        path: "/rooms/pins",
        permission: PERMISSIONS.roomPinView,
    },
    {
        label: "房间配置",
        loader: () => import("./pages/RoomConfigPage.jsx").then((module) => module.RoomConfigPage),
        menuCode: MENU_CODES.roomConfig,
        pageKey: "room-config",
        path: "/rooms/config",
        permission: PERMISSIONS.roomConfigView,
    },
    {
        label: "房间白名单",
        loader: () => import("./pages/RoomWhitelistPage.jsx").then((module) => module.RoomWhitelistPage),
        menuCode: MENU_CODES.roomWhitelist,
        pageKey: "room-whitelist",
        path: "/rooms/whitelist",
        permission: PERMISSIONS.roomWhitelistView,
    },
    {
        label: "机器人房间",
        loader: () => import("./pages/RoomRobotPage.jsx").then((module) => module.RoomRobotPage),
        menuCode: MENU_CODES.roomRobots,
        pageKey: "room-robots",
        path: "/rooms/robots",
        permission: PERMISSIONS.roomRobotView,
    },
];
