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

export const resourceRoutes = [
    {
        label: "资源列表",
        loader: () => import("./pages/ResourceListPage.jsx").then((module) => module.ResourceListPage),
        menuCode: MENU_CODES.resourceList,
        pageKey: "resource-list",
        path: "/resources",
        permission: PERMISSIONS.resourceView,
    },
    {
        label: "道具商店",
        loader: () => import("./pages/ResourceShopPage.jsx").then((module) => module.ResourceShopPage),
        menuCode: MENU_CODES.resourceShopList,
        pageKey: "resource-shop-list",
        path: "/resource-shop",
        permission: PERMISSIONS.resourceShopView,
    },
    {
        label: "资源组列表",
        loader: () => import("./pages/ResourceGroupListPage.jsx").then((module) => module.ResourceGroupListPage),
        menuCode: MENU_CODES.resourceGroupList,
        pageKey: "resource-group-list",
        path: "/resource-groups",
        permission: PERMISSIONS.resourceGroupView,
    },
    {
        label: "礼物列表",
        loader: () => import("./pages/GiftListPage.jsx").then((module) => module.GiftListPage),
        menuCode: MENU_CODES.giftList,
        pageKey: "gift-list",
        path: "/gifts",
        permission: PERMISSIONS.giftView,
    },
    {
        label: "表情包列表",
        loader: () => import("./pages/EmojiPackListPage.jsx").then((module) => module.EmojiPackListPage),
        menuCode: MENU_CODES.emojiPackList,
        pageKey: "emoji-pack-list",
        path: "/emoji-packs",
        permission: PERMISSIONS.emojiPackView,
    },
    {
        label: "资源赠送",
        loader: () => import("./pages/ResourceGrantListPage.jsx").then((module) => module.ResourceGrantListPage),
        menuCode: MENU_CODES.resourceGrantList,
        pageKey: "resource-grant-list",
        path: "/resource-grants",
        permission: PERMISSIONS.resourceGrantView,
    },
];
