mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 16:00:56 +00:00
17 lines
440 B
TypeScript
17 lines
440 B
TypeScript
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>
|
|
);
|
|
}
|