import CheckIcon from "@mui/icons-material/Check"; import CloseIcon from "@mui/icons-material/Close"; import RemoveIcon from "@mui/icons-material/Remove"; export type DocVariant = "yes" | "no" | "nn"; const DOC_TOKENS: Record = { yes: { bg: "var(--doc-yes-bg)", text: "var(--doc-yes-text)" }, no: { bg: "var(--doc-no-bg)", text: "var(--doc-no-text)" }, nn: { bg: "var(--doc-nn-bg)", text: "var(--doc-nn-text)" }, }; const DOC_LABELS: Record = { yes: "Yes", no: "No", nn: "N/A", }; type DocBadgeProps = { variant: DocVariant; label?: string; showIcon?: boolean; }; export function DocBadge({ variant, label, showIcon = true }: DocBadgeProps) { const tokens = DOC_TOKENS[variant]; const icon = variant === "yes" ? ( ) : variant === "no" ? ( ) : ( ); return ( {showIcon && icon} {label ?? DOC_LABELS[variant]} ); }