import type { VerdictCount } from "../../lib/report/views"; import type { Verdict, VerdictStyle } from "../../lib/report/verdicts"; import { cn } from "../../lib/utils"; // A fact-check's verdict, from the shared vocabulary (lib/report/verdicts.mjs) // with the report's overrides applied — the one place a verdict is drawn, so // the export site, the editor's previews and umtool's report preview agree. // The colour marks the chip (its dot and edge); the label's text stays in the // foreground colour so it reads on every base whatever the colour is. export function VerdictChip({ verdict, style: s, count, className, }: { verdict: Verdict; style: VerdictStyle; count?: number; className?: string; }) { return ( {s.label} {count !== undefined && {count}} ); } // A fact-check's tally: one chip per verdict a claim carries, with its count. export function VerdictTally({ tally, styles, className, }: { tally: readonly VerdictCount[]; styles: Readonly>; className?: string; }) { if (tally.length === 0) return null; return ( ); }