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

export const hostOrgRoutes = [
    {
        label: "国家管理",
        loader: () => import("./pages/HostCountriesPage.jsx").then((module) => module.HostCountriesPage),
        menuCode: MENU_CODES.hostOrgCountries,
        pageKey: "host-org-countries",
        path: "/host/countries",
        permission: PERMISSIONS.countryView,
    },
    {
        label: "区域管理",
        loader: () => import("./pages/HostRegionsPage.jsx").then((module) => module.HostRegionsPage),
        menuCode: MENU_CODES.hostOrgRegions,
        pageKey: "host-org-regions",
        path: "/host/regions",
        permission: PERMISSIONS.regionView,
    },
    {
        label: "经理列表",
        loader: () => import("./pages/HostManagersPage.jsx").then((module) => module.HostManagersPage),
        menuCode: MENU_CODES.hostOrgManagers,
        pageKey: "host-org-managers",
        path: "/host/managers",
        permission: PERMISSIONS.bdView,
    },
    {
        label: "Agency 列表",
        loader: () => import("./pages/HostAgenciesPage.jsx").then((module) => module.HostAgenciesPage),
        menuCode: MENU_CODES.hostOrgAgencies,
        pageKey: "host-org-agencies",
        path: "/host/agencies",
        permission: PERMISSIONS.agencyView,
    },
    {
        label: "BD Leader 列表",
        loader: () => import("./pages/HostBdLeadersPage.jsx").then((module) => module.HostBdLeadersPage),
        menuCode: MENU_CODES.hostOrgBdLeaders,
        pageKey: "host-org-bd-leaders",
        path: "/host/bd-leaders",
        permission: PERMISSIONS.bdView,
    },
    {
        label: "BD 列表",
        loader: () => import("./pages/HostBdsPage.jsx").then((module) => module.HostBdsPage),
        menuCode: MENU_CODES.hostOrgBds,
        pageKey: "host-org-bds",
        path: "/host/bds",
        permission: PERMISSIONS.bdView,
    },
    {
        label: "Host 列表",
        loader: () => import("./pages/HostHostsPage.jsx").then((module) => module.HostHostsPage),
        menuCode: MENU_CODES.hostOrgHosts,
        pageKey: "host-org-hosts",
        path: "/host/hosts",
        permission: PERMISSIONS.hostView,
    },
    {
        label: "Coin Saller列表",
        loader: () => import("./pages/HostCoinSellersPage.jsx").then((module) => module.HostCoinSellersPage),
        menuCode: MENU_CODES.hostOrgCoinSellers,
        pageKey: "host-org-coin-sellers",
        path: "/host/coin-sellers",
        permission: PERMISSIONS.coinSellerView,
    },
    {
        label: "Sub Coin Seller 申请列表",
        loader: () =>
            import("./pages/HostSubCoinSellerApplicationsPage.jsx").then(
                (module) => module.HostSubCoinSellerApplicationsPage,
            ),
        menuCode: MENU_CODES.hostOrgCoinSellerSubApplications,
        pageKey: "host-org-coin-seller-sub-applications",
        path: "/host/coin-seller-sub-applications",
        permission: PERMISSIONS.coinSellerSubApplicationView,
    },
    {
        label: "主播提现",
        loader: () => import("./pages/HostWithdrawalsPage.jsx").then((module) => module.HostWithdrawalsPage),
        menuCode: MENU_CODES.hostWithdrawals,
        pageKey: "host-withdrawals",
        path: "/host/withdrawals",
        permission: PERMISSIONS.hostWithdrawalView,
    },
    {
        label: "币商提现白名单",
        loader: () =>
            import("./pages/PointWithdrawalConfigPage.jsx").then((module) => module.PointWithdrawalConfigPage),
        menuCode: MENU_CODES.hostOrgPointWithdrawalConfig,
        pageKey: "host-org-point-withdrawal-config",
        path: "/host/point-withdrawal-config",
        permission: PERMISSIONS.pointWithdrawalConfigView,
    },
];
