import { setRequestLocale } from "next-intl/server";
import { CreateServerForm } from "@/components/servers/create-server-form";

interface NewServerPageProps {
  params: Promise<{ locale: string }>;
}

export default async function NewServerPage({ params }: NewServerPageProps) {
  const { locale } = await params;
  setRequestLocale(locale);

  return <CreateServerForm />;
}
