/* * Copyright (C) 2019-2024 CZ.NIC z.s.p.o. (https://www.nic.cz/) * * This is free software, licensed under the GNU General Public License v3. * See /LICENSE for more information. */ import React from "react"; import propTypes from "prop-types"; RichTableBody.propTypes = { table: propTypes.shape({ getRowModel: propTypes.func.isRequired, }).isRequired, flexRender: propTypes.func.isRequired, }; function RichTableBody({ table, flexRender }) { return ( {table.getRowModel().rows.map((row) => { return ( {row.getVisibleCells().map((cell) => { return ( {flexRender( cell.column.columnDef.cell, cell.getContext() )} ); })} ); })} ); } export default RichTableBody;