import { localizedMetadata } from "@/lib/i18n/serverMetadata";
import type { Metadata } from "next";
import VerifyReport from "@/features/achievements/components/VerifyReport";

const pageMetadata: Metadata = {
  title: "Verify report",
  /* A one-off verification result keyed by uuid: never useful in search,
     and the uuid should not be indexed. */
  robots: { index: false, follow: false },
};

export async function generateMetadata(): Promise<Metadata> {
  return localizedMetadata(pageMetadata);
}

export default async function Page({
  params,
}: {
  params: Promise<{ uuid: string }>;
}) {
  const { uuid } = await params;
  return <VerifyReport uuid={uuid} />;
}
