import React from "react"; import PropTypes from "prop-types"; import { Button, FormControl } from "react-bootstrap"; const PaginationFooter = (props) => { const { offset, limit, visible, total, next, prev, handleLimit } = props; return (

Displaying {visible ? offset + 1 : offset}-{offset + visible}{" "} {total ? `of ${total}` : ""}
{offset >= 1 ? ( ) : ( )} {offset + visible < total ? ( ) : ( )}

); }; PaginationFooter.propTypes = { endpoint: PropTypes.string, offset: PropTypes.number, limit: PropTypes.number, visible: PropTypes.number, total: PropTypes.number, handleLimit: PropTypes.func, next: PropTypes.func, prev: PropTypes.func, }; export default PaginationFooter;