import styles from './table.module.css' export default function Table({columns, rows, foot}) { return ( {columns?.map(column=> )} {rows && rows.length > 0 && {rows.map(row=> {columns.map(column=> )} )} } {foot && {foot.map((item, i) => )} }
{column.name}
{column.extractor(row)}
{item}
) }