import type { ReactNode } from "react";

import LeisureVendorAssets from "@/components/layout/LeisureVendorAssets";

/**
 * LEIS-988/989/990 — "Review your trip" + the Request-approval overlay.
 *
 * Review your trip is ported Bootstrap markup from leisure-ui's actual
 * "Review your Booking" page (BookingSummaryServer/PriceBreakupSidebarServer/
 * GuestDetailsForm) per the user's own reference — so this route needs the
 * same vendor bundle app/hotel-details/layout.tsx and app/srp/layout.tsx do.
 * The approval overlay is still written against `.fra-*`/`.bz-*`
 * (flight-approval.css/biz-ui.css), same as the E4 overlay and
 * flight-request's step 4 — both sheets are loaded together here for the
 * same reason flight-request's layout loads them alongside leisure-ui's
 * booking panes: one route, two design systems, the modal scoped under
 * `[data-corp-modal]` to survive the Bootstrap reset.
 */
export default function HotelRequestLayout({ children }: { children: ReactNode }) {
  return (
    <>
      <LeisureVendorAssets />
      {/* eslint-disable-next-line @next/next/no-css-tags */}
      <link rel="stylesheet" href="/assets/css/flight-approval.css" />
      {/* eslint-disable-next-line @next/next/no-css-tags */}
      <link rel="stylesheet" href="/assets/css/biz-ui.css" />
      {children}
    </>
  );
}
