@cimpress/react-components
Version:
React components to support the MCP styleguide
6 lines • 460 B
JavaScript
/* eslint-disable react/no-array-index-key */
import React from 'react';
import { TableCell } from './TableCell';
const TableBody = ({ data, columns }) => (React.createElement(React.Fragment, null, data.map((row, i) => (React.createElement("tr", { key: `row-${row.id}-${i}` }, columns.map(c => (React.createElement(TableCell, { key: `cell-${row.id}-${i}-${c.accessor}`, column: c, row: row }))))))));
export { TableBody };
//# sourceMappingURL=TableBody.js.map