import { setRequestLocale } from "next-intl/server";
import { ServerDetailContent } from "@/components/servers/server-detail-content";

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

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

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