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

export const gameRoutes = [
    {
        label: "游戏列表",
        loader: () => import("./pages/GameListPage.jsx").then((module) => module.GameListPage),
        menuCode: MENU_CODES.gameList,
        pageKey: "game-list",
        path: "/games",
        permission: PERMISSIONS.gameView,
    },
    {
        label: "自研游戏",
        loader: () => import("./pages/SelfGamePage.jsx").then((module) => module.SelfGamePage),
        menuCode: MENU_CODES.selfGames,
        pageKey: "self-games",
        path: "/games/self-games",
        permission: PERMISSIONS.gameView,
    },
    {
        label: "全站机器人",
        loader: () => import("./pages/GameRobotPage.jsx").then((module) => module.GameRobotPage),
        menuCode: MENU_CODES.gameRobots,
        pageKey: "game-robots",
        path: "/games/robots",
        permission: PERMISSIONS.gameView,
    },
    {
        label: "房内猜拳配置",
        loader: () => import("./pages/RoomRpsConfigPage.jsx").then((module) => module.RoomRpsConfigPage),
        menuCode: MENU_CODES.roomRpsConfig,
        pageKey: "room-rps-config",
        path: "/games/room-rps/config",
        permission: PERMISSIONS.gameView,
    },
    {
        label: "房内猜拳订单",
        loader: () => import("./pages/RoomRpsChallengePage.jsx").then((module) => module.RoomRpsChallengePage),
        menuCode: MENU_CODES.roomRpsChallenges,
        pageKey: "room-rps-challenges",
        path: "/games/room-rps/challenges",
        permission: PERMISSIONS.gameView,
    },
];
