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

import HotelCheckoutClient from "@/components/hotel-review/HotelCheckoutClient";

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

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