import React from 'react'; import { DropdownItem, DropdownMenu, DropdownToggle, UncontrolledDropdown } from 'reactstrap'; import * as PropTypes from 'prop-types'; const propTypes = { toggleClassName: PropTypes.string, ranges: PropTypes.arrayOf(PropTypes.number).isRequired, value: PropTypes.number.isRequired, setValue: PropTypes.func.isRequired, }; const PaginationDropdown = ({ toggleClassName, ranges, value, setValue }) => ( Paginate {ranges.map((itemsPerPage) => ( setValue(itemsPerPage)}> {itemsPerPage} items per page ))} setValue(Infinity)}> Clear pagination ); PaginationDropdown.propTypes = propTypes; export default PaginationDropdown;