components.table.TablePaginateRows.js Maven / Gradle / Ivy
import { TableRows } from '@mui/icons-material';
import PropTypes from 'prop-types';
import { columnsType } from 'utils/type-utils';
import { paginate } from 'utils/utils';
const TablePaginateRows = ({rows, pageSize, page, columns}) => {
const pageRows = paginate(rows, pageSize, page)
return
}
const rowType = PropTypes.shape({
id : PropTypes.node.isRequired,
onClick: PropTypes.func,
cells : PropTypes.object.isRequired
}).isRequired
const rowsType = PropTypes.arrayOf(rowType).isRequired
TablePaginateRows.propTypes = {
rows : rowsType,
pageSize: PropTypes.number.isRequired,
page : PropTypes.number.isRequired,
columns: columnsType
};
export default TablePaginateRows;