import type { Metadata } from "next";
import { Suspense } from "react";
import { VerarbeitungContent } from "./VerarbeitungContent";

// robots: noindex — transactional page, same reasoning as /checkout itself.
export const metadata: Metadata = {
  title: "Zahlung wird bestätigt",
  robots: { index: false, follow: true },
};

export default function VerarbeitungPage() {
  // useSearchParams (reading ?orderNumber=) requires a Suspense boundary
  // in the App Router — this page has no meaningful loading state of its
  // own beyond what VerarbeitungContent already renders.
  return (
    <Suspense>
      <VerarbeitungContent />
    </Suspense>
  );
}
