import { Badge } from "@mantine/core";

const STATUS_COLOR: Record<string, string> = {
  PENDING: "edr-green",
  ACCEPTED: "blue",
  REJECTED: "red",
};

/** Status of a customer-submitted shipment (booking) request against a contract. */
export function BookingRequestStatusBadge({ status }: { status: string }) {
  return (
    <Badge variant="light" radius="sm" color={STATUS_COLOR[status] ?? "gray"}>
      {status}
    </Badge>
  );
}
