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

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

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

/**
 * LEIS-1022 — the employee's booked/cancelled trips, separate from the
 * approval pipeline on /employee-requests. See MyTripsView's own doc
 * comment for why the two are not the same page.
 */
export default function MyTripsPage() {
  return (
    <main className="min-h-[60vh] bg-[var(--fra-bg)]">
      <Suspense fallback={null}>
        <MyTripsView />
      </Suspense>
    </main>
  );
}
