import type { LucideIcon } from "lucide-react";
import { Layers, ShipWheel, Truck } from "lucide-react";

/**
 * The Global Logistics clearance queue holds only customs bookings
 * (`DOCUMENTS_UNDER_REVIEW` + customsClearingEnabled); non-customs clearance is
 * reviewed by Marketing on the booking detail. Since every row here is a customs
 * booking, the tabs slice by trade direction rather than customs scope.
 */
export type ClearanceTabKey = "all" | "import" | "export";

export interface ClearanceTab {
  key: ClearanceTabKey;
  label: string;
  icon: LucideIcon;
}

export const CLEARANCE_TABS: ClearanceTab[] = [
  { key: "all", label: "All", icon: Layers },
  { key: "import", label: "Import", icon: Truck },
  { key: "export", label: "Export", icon: ShipWheel },
];

/** The backend booking status that places a booking in the clearance queue. */
export const CLEARANCE_REVIEW_STATUS = "DOCUMENTS_UNDER_REVIEW";
