import { Cell, TableRowProps } from 'react-table'; interface Props = Record> extends Omit { cells: Cell[]; } export function TableRow< D extends Record = Record >({ cells, className, role, style }: Props) { return ( {cells.map((cell) => { const cellProps = cell.getCellProps({ className: cell.className, }); return ( {cell.render('Cell')} ); })} ); }