import { lazy } from "react";
import { lazyRetry } from "../utils/lazyRetry";
import {
  ROUTE_GUILD_ROOM_ROUTE_MANAGE_GUILDS,
  ROUTE_GUILD_ROOM_ROUTE_GUILDS_REQUESTS,
  ROUTE_GUILD_ROOM_ROUTE_GUILDS,
  ROUTE_GUILD_ROOM_ROUTE_STEWARDS,
  // ROUTE_GUILD_ROOM_ROUTE_GUILDS_SETTINGS,
} from "./routes";

const ManageGuilds = lazy(() => lazyRetry(() => import("../pages/Guilds")));

export const guildRoomRouting = [
  {
    path: [
      ROUTE_GUILD_ROOM_ROUTE_MANAGE_GUILDS,
      ROUTE_GUILD_ROOM_ROUTE_GUILDS_REQUESTS,
      ROUTE_GUILD_ROOM_ROUTE_GUILDS,
      ROUTE_GUILD_ROOM_ROUTE_STEWARDS,
      // ROUTE_GUILD_ROOM_ROUTE_GUILDS_SETTINGS,
    ],
    Page: ManageGuilds,
    exact: false,
    props: {},
  },
];
