import { setRequestLocale } from "next-intl/server";
import { ServerFiles } from "@/components/servers/server-files";

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

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

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