import React from 'react' import classnames from 'classnames' export const BasicTable = (props) => { const { nestedTable, tableInstance, rowClassName, noHeader, headerClassName } = props const { getTableProps, getTableBodyProps, headerGroups, rows, prepareRow } = tableInstance let className = 'table table-fixed w-full align-top' return ( <> {!noHeader && ( {headerGroups.map((headerGroup, index) => { return ( {headerGroup.headers.map((column) => { return ( ) })} ) })} )} {rows.map((row) => { prepareRow(row) return ( {row.cells.map((cell, index) => { return ( ) })} ) })}
{column.render('Header')}
{cell.render('Cell')}
) } BasicTable.defaultProps = { rowClassName: '', noHeader: false }