import { displayReportMoney, type InvestmentReportTable, } from '@/lib/integral-financial-report'; export function InvestmentReportTables({ tables, }: { tables: InvestmentReportTable[]; }) { return (
{tables.map((table) => (

{table.title}

{table.issues.length > 0 && ( )} {table.rows.length > 0 && (
{table.headers.map((header, index) => ( ))} {table.rows.map((row, i) => ( {row.map((cell, j) => j === 0 ? ( ) : ( ), )} ))}
{table.title}
{header}
{cell} {displayReportMoney( cell, )}
)} {table.notes.map((note, i) => (

{note}

))}
))}
); }