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

/* Upay sends the payer back here (backend `UpayUrls`). Terminal, per-user screen. */
const pageMetadata: Metadata = {
  title: "Payment cancelled",
  robots: { index: false, follow: false },
};

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

export default function Page() {
  return <PaymentReturn />;
}
