inventory1

This commit is contained in:
2026-03-14 21:10:35 -05:00
parent df3f1412f6
commit d21e2e3c0b
21 changed files with 1492 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
import type { InventoryItemStatus } from "@mrp/shared/dist/inventory/types.js";
import { inventoryStatusPalette } from "./config";
const labels: Record<InventoryItemStatus, string> = {
DRAFT: "Draft",
ACTIVE: "Active",
OBSOLETE: "Obsolete",
};
export function InventoryStatusBadge({ status }: { status: InventoryItemStatus }) {
return (
<span className={`inline-flex items-center rounded-full px-3 py-1 text-xs font-semibold uppercase tracking-[0.14em] ${inventoryStatusPalette[status]}`}>
{labels[status]}
</span>
);
}