Production

This commit is contained in:
Shubhankar45
2026-09-22 06:23:46 +00:00
commit 8fdd20b29f
217 changed files with 31212 additions and 0 deletions
@@ -0,0 +1,14 @@
import { Badge, type Tone } from "../ui/Badge";
import { STATUS_LABEL } from "../../lib/format";
import type { DcrStatus } from "../../types";
const TONE: Record<DcrStatus, Tone> = {
DRAFT: "neutral",
PENDING_AM: "warning",
RETURNED: "danger",
APPROVED: "success",
};
export function StatusBadge({ status }: { status: DcrStatus }) {
return <Badge tone={TONE[status]} dot>{STATUS_LABEL[status]}</Badge>;
}