import { setRequestLocale } from "next-intl/server";
import { ServerConsole } from "@/components/servers/server-console";

interface ServerConsolePageProps {
  params: Promise<{ locale: string; id: string }>;
}

export default async function ServerConsolePage({ params }: ServerConsolePageProps) {
  const { locale, id } = await params;
  setRequestLocale(locale);

  return <ServerConsole serverId={id} />;
}
