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

import { BookingDetailsView } from "@/components/employee-requests/BookingDetailsView";

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

/**
 * LEIS-1022 — the separate page My Trips' "View & Manage Booking" CTA now
 * navigates to, same as leisure-ui's own `/booking-details?bookingId=...`.
 * See BookingDetailsView's own doc comment for what this does and doesn't
 * carry over from leisure-ui's version.
 */
export default function BookingDetailsPage() {
  return (
    <main className="min-h-[60vh] bg-[var(--fra-bg)]">
      <Suspense fallback={null}>
        <BookingDetailsView />
      </Suspense>
    </main>
  );
}
