import TablePagination, { type TablePaginationProps } from '@mui/material/TablePagination'; import { equals } from 'ramda'; import { memo } from 'react'; const Pagination = (props: TablePaginationProps): JSX.Element => ( ); const MemoizedPagination = memo( Pagination, (prevProps, nextProps) => equals(prevProps.rowsPerPage, nextProps.rowsPerPage) && equals(prevProps.page, nextProps.page) && equals(prevProps.count, nextProps.count) && equals(prevProps.labelRowsPerPage, nextProps.labelRowsPerPage) && equals(prevProps.className, nextProps.className) && prevProps.labelDisplayedRows === nextProps.labelDisplayedRows ); export default MemoizedPagination;