import { flexRender, Header, HeaderGroup, Table } from '@tanstack/react-table'; interface TableFooterProps { table: Table } function TableFooter({ table }: TableFooterProps) { return ( {table.getFooterGroups().map( (footerGroup: HeaderGroup) => ( {footerGroup.headers.map( (header: Header) => ( {!header.isPlaceholder ? flexRender(header.column.columnDef.footer, header.getContext()) : null} ))} ))} ); } export default TableFooter;