import { Badge } from "@mantine/core"; const STATUS_COLORS: Record = { DRAFT: "gray", SCHEDULED: "blue", DISPATCHED: "edr-green", ARRIVED: "teal", CANCELLED: "red", }; export function ScheduleStatusBadge({ status }: { status: string }) { return ( {status} ); } export function FreightTypeBadge({ freightType }: { freightType?: string | null }) { if (!freightType) return ; const color = freightType === "BULK" ? "orange" : freightType === "MIXED" ? "grape" : "cyan"; return ( {freightType} ); } export function SchedulingStatusBadge({ status }: { status?: string | null }) { if (!status) return null; const colors: Record = { NOT_SCHEDULED: "gray", HOLDING: "yellow", ELIGIBLE: "blue", SCHEDULED: "indigo", DISPATCHED: "edr-green", WAITING_FOR_WAGON: "yellow", MANUAL_ONLY: "orange", }; return ( {status.replace(/_/g, " ")} ); }