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

import ApprovalQueue from "@/components/admin-approvals/ApprovalQueue";

export const metadata: Metadata = {
  title: "Flight/Hotel approval queue",
};

export default function FlightApprovalsPage() {
  // ApprovalQueue reads `?request=` with useSearchParams() to deep-link into a
  // review overlay, which opts its subtree out of static prerendering unless a
  // boundary exists. Null fallback: the queue renders its own loading state.
  return (
    <Suspense fallback={null}>
      <ApprovalQueue />
    </Suspense>
  );
}
