/** * WarningsList — model-flagged concerns rendered as marginalia strokes. * Info/warning/error rendered with different left-border colors so the reader * can scan severity without reading. */ import type { ExtractionWarning } from "@/types"; interface Props { warnings: ExtractionWarning[]; } const COLORS: Record = { info: "var(--ink-mute)", warning: "var(--mustard)", error: "var(--accent)", }; export function WarningsList({ warnings }: Props) { if (!warnings.length) { return (

No warnings — model reported no concerns.

); } return ( ); }