import { setRequestLocale } from "next-intl/server";
import { ServerWorlds } from "@/components/servers/server-worlds";

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

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

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