import type { LunaticComponentProps } from '../type'; import { LunaticComponents } from '../LunaticComponents'; import { getComponentErrors } from '../shared/ComponentErrors/ComponentErrors'; import { Td, Tbody, Tr, TableHeader, Table as BaseTable, } from '../shared/Table'; import type { PropsWithChildren } from 'react'; export function Table(props: LunaticComponentProps<'Table'>) { const { id, body, header, errors, declarations, label } = props; return ( {body.map((row, rowIndex) => ( > components={row} wrapper={({ colspan, rowspan, ...props }) => ( )} /> ))} ); }