'use client' import { Image as ImageIcon, ExternalLink } from 'lucide-react' import type { FigureUnit } from '@/lib/sdk/advisor/evidence' import { PaneHeader } from './PaneHeader' function FigureCard({ fig }: { fig: FigureUnit }) { const canOpen = !!fig.imageUrl && /^https?:\/\//i.test(fig.imageUrl) return (
{fig.label} {fig.caption ? — {fig.caption} : null}
{canOpen && ( Original anzeigen )}
Quelle: {fig.source.short} {fig.section ? ` · ${fig.section}` : ''}
{canOpen ? ( {/* eslint-disable-next-line @next/next/no-img-element */} {fig.caption ) : (
Original-Abbildung folgt
)} {fig.visionSummary && (

{fig.visionSummary}

)}
) } /** Figures pane (C8) — original document figures, rendered only when present. */ export function FiguresPane({ figures }: { figures: FigureUnit[] }) { if (figures.length === 0) return null return (
} title="Abbildungen & Diagramme" count={figures.length} />
{figures.map((f) => ( ))}
) }