'use client' import { Hash } from 'lucide-react' import type { Footnote } from '@/lib/sdk/advisor/contract' import { PaneHeader } from './PaneHeader' /** Footnotes pane (C-FN) — rendered only when present. */ export function FootnotesPane({ footnotes }: { footnotes: Footnote[] }) { if (footnotes.length === 0) return null return (
} title="Fußnoten" count={footnotes.length} />
{footnotes.map((fn, i) => (
{fn.ref || `Fußnote ${i + 1}`} {(fn.document || fn.section) && ( {' · '} {fn.document} {fn.section ? ` / ${fn.section}` : ''} )} {fn.text &&

{fn.text}

}
))}
) }