Intelligence

Artifacts

Browse the repository, read documents, and manage the governance folders. Source, runtime, and infrastructure are read-only.

Repository
.gitignoreDockerfilenext-env.d.tsnext.config.mjspackage-lock.jsonpackage.jsonpostcss.config.mjsREADME.mdtailwind.config.tstsconfig.jsontsconfig.tsbuildinfo
README.md
CONSTITUTION_COMPLIANCE_AUDIT_V1.mdREADME.md
repositories/aaf-holdings/hq01/components/missions/assignment-status-badge.tsx
725 B
import { cn } from "@/lib/utils";
import type { AssignmentStatus } from "@/lib/missions/types";

const STYLES: Record<AssignmentStatus, string> = {
  Pending: "bg-slate-100 text-slate-600",
  Dispatched: "bg-amber-50 text-amber-700",
  Completed: "bg-emerald-50 text-emerald-700",
  Failed: "bg-red-50 text-red-700",
  Cancelled: "bg-slate-100 text-slate-500",
};

export function AssignmentStatusBadge({
  status,
  className,
}: {
  status: AssignmentStatus;
  className?: string;
}) {
  return (
    <span
      className={cn(
        "inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium",
        STYLES[status] ?? STYLES.Pending,
        className,
      )}
    >
      {status}
    </span>
  );
}

root · /srv/aaf