import Link from 'next/link'

/**
 * What a real pilot account sees where only a design preview exists
 * (2026-10-01, Nash: "real carrier Trips never display fake pilot companies,
 * names, telephone numbers or demonstration information"). The pilot trip
 * and new-trip screens run on made-up assignments for internal review; a
 * customer is told plainly that the screen is not live instead of being
 * shown someone else's invented trip.
 */
export function PilotViewNotAvailable({ title, homeHref }: { title: string; homeHref: string }) {
  return (
    <main className="mx-auto max-w-xl px-4 py-16 text-center">
      <h1 className="text-xl font-bold tracking-tight">{title}</h1>
      <p className="mt-3 text-sm text-neutral-600">
        This screen is not available yet. Trips that a carrier or broker shares with you will appear
        here once the pilot trip view is live. Nothing is missing from your account.
      </p>
      <Link href={homeHref} className="mt-6 inline-block rounded-lg bg-neutral-900 px-4 py-2 text-sm font-semibold text-white">
        Back to dashboard
      </Link>
    </main>
  )
}
