import { DropdownItem, DropdownMenu, DropdownToggle, UncontrolledDropdown } from 'reactstrap'; interface PaginationDropdownProps { ranges: number[]; value: number; setValue: (newValue: number) => void; toggleClassName?: string; } const PaginationDropdown = ({ toggleClassName, ranges, value, setValue }: PaginationDropdownProps) => ( Paginate {ranges.map((itemsPerPage) => ( setValue(itemsPerPage)}> {itemsPerPage} items per page ))} setValue(Infinity)}> Clear pagination ); export default PaginationDropdown;