This commit is contained in:
2026-03-14 23:48:27 -05:00
parent ff37ad6f06
commit 7b85d14ff6
21 changed files with 1072 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
import type { ShipmentStatus } from "@mrp/shared/dist/shipping/types.js";
import { shipmentStatusOptions, shipmentStatusPalette } from "./config";
export function ShipmentStatusBadge({ status }: { status: ShipmentStatus }) {
const label = shipmentStatusOptions.find((option) => option.value === status)?.label ?? status;
return <span className={`inline-flex rounded-full px-2 py-1 text-xs font-semibold ${shipmentStatusPalette[status]}`}>{label}</span>;
}