import type { DataTableProps } from '../../types'; export default function DataTable({ headers, rows, caption, highlightRow }: DataTableProps) { return (
{caption &&

{caption}

} {headers.map((h, i) => ( ))} {rows.map((row, i) => ( {row.map((cell, j) => ( ))} ))}
{h}
{typeof cell === 'number' ? ( {cell} ) : ( cell )}
); }