import { setRequestLocale } from "next-intl/server";
import { ServerAddons } from "@/components/servers/server-addons";

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

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

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