import { notFound } from "next/navigation";
import { getTranslations } from "next-intl/server";

export async function generateMetadata({
  params,
}: {
  params: Promise<{ locale: string }>;
}) {
  const { locale } = await params;
  const t = await getTranslations({
    locale,
    namespace: "NotFoundPage",
  });

  return {
    title: `404 – ${t("title")} | MEDF`,
    description: t("description"),
  };
}

export default function CatchAllPage() {
  notFound();
}
