import { MessageForwardIcon } from "@chopin/icons"; import { InlineCode } from "@chopin/question/react"; import { Face } from "@chopin/editor"; import type { SourceDestination } from "./card-parts"; import type { EvidenceRow } from "./evidence"; function People({ handles, label, opposed = false }: { handles: string[]; label: string; opposed?: boolean; }) { if (handles.length === 0) return null; let shown = handles.slice(0, 8); return ( {label} {handles.join(", ")} {shown.map((handle, index) => ( ))} {handles.length > 8 && ( )} ); } export function EvidencePopover({ rows, onSource }: { rows: EvidenceRow[]; onSource: (destination: SourceDestination) => void; }) { return (
{rows.map(row => (

{row.origin === "planner" && ( Planner suggested )}
{row.origin === "planner" && row.rationale && (

Why Chopin suggested this: {row.rationale}

)} {row.origin === "planner" && row.source && row.optionId && (
{row.source.author.kind === "member" ? `@${row.source.author.handle}` : "Planner"} {row.source.quote}
)} {row.items.length > 0 && ( )}
))}
); }