import React, { useContext } from 'react'; import classNames from 'classnames'; import TableContext from './TableContext'; /** * Table footer. */ export default function TableFooter() { const { props: { footer }, table: { footerGroups }, } = useContext(TableContext); // Can't contiunue if the footer is disabled. if (!footer) { return null; } return (
); }