import type { ContextReference } from '@/lib/investor-context'; export default function ContextDocuments({ source, }: { source?: ContextReference; }) { if (!source?.documents?.length) return null; return (

Documentos de apoio

{(source.documents ?? []).map((doc) => (

{doc.title}{doc.edition ? ` · ${doc.edition}` : ''}

{doc.section &&

Referência utilizada: {doc.section}

} Consultar documento —{' '} {doc.edition ?? doc.title}
))}
); }