"use client"; import { DecisionType } from "@/lib/types"; import { Check, X, AlertCircle } from "lucide-react"; interface StatusBadgeProps { decision: DecisionType; } export function StatusBadge({ decision }: StatusBadgeProps) { const config = { YES: { bg: "bg-green-950/40 border-green-700/50", text: "text-green-400", icon: , label: "MANUFACTURABLE", }, NO: { bg: "bg-red-950/40 border-red-700/50", text: "text-red-400", icon: , label: "NOT MANUFACTURABLE", }, CONDITIONAL: { bg: "bg-yellow-950/40 border-yellow-700/50", text: "text-yellow-400", icon: , label: "CONDITIONALLY MANUFACTURABLE", }, }[decision]; return (
{config.icon} {config.label}
); }