import { Suspense } from "react";
import type { Metadata } from "next";

import FlightCheckoutClient from "@/components/flight-review/FlightCheckoutClient";

export const metadata: Metadata = {
  title: "Book now · Leisure Business",
  robots: { index: false, follow: false },
};

/**
 * Book Now (LEIS-1010) — a page, not an overlay, matching the admin
 * checkout page's own shape. See FlightCheckoutClient for why this can't be
 * `/flight-checkout/:requestId` the way the admin route is: there is no
 * request yet at the point Book Now is clicked.
 */
export default function FlightCheckoutPage() {
  return (
    <main className="min-h-[60vh]">
      <Suspense fallback={null}>
        <FlightCheckoutClient />
      </Suspense>
    </main>
  );
}
