import { setRequestLocale } from "next-intl/server";
import { ServerPlayers } from "@/components/servers/server-players";

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

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

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