import { Panel } from '@/components/procurement'; export type FrozenCapitalAssignment = { id: number; version: number; reason: string; snapshot: { item: { description: string }; source: { version: number; data: { type: string; code: string; name: string; reference: string; }; }; }; }; export default function CapitalAssignmentSummary({ records, }: { records?: Record; }) { const rows = Object.values(records ?? {}); if (!rows.length) return null; return ( {rows.map((row) => (

{row.snapshot.item.description}

{row.snapshot.source.data.type === 'project' ? 'Projecto' : 'Imobilizado'}{' '} · {row.snapshot.source.data.code} ·{' '} {row.snapshot.source.data.name} · versão{' '} {row.snapshot.source.version}

{row.snapshot.source.data.reference}

{row.reason}

))}
); }