import React from 'react'; import { Pagination } from 'react-bootstrap'; function pagination() { let active = 1; let items = []; for (let number = 1; number <= 5; number++) { items.push( {number} , ); } return ( {items} ) } export default pagination // import { Pagination } from "react-bootstrap"; // import React from 'react'; // function Paginations(props) { // return ( // // props.handlePage(1)} /> // {props.index === 1 ? props.handlePage(props.index)} /> : props.handlePage(props.index - 1)} />} // {props.index === props.endPage-1 ? props.handlePage(props.index - 3)}>{props.index - 3} : ""} // {props.index === props.endPage ? props.handlePage(props.index - 4)}>{props.index - 4} : ""} // {props.index === props.endPage ? props.handlePage(props.index - 3)}>{props.index - 3} : ""} // {props.index < 3 ? "" : props.handlePage(props.index - 2)}>{props.index - 2}} // {props.index === 1 ? "" : props.handlePage(props.index - 1)}>{props.index - 1}} // {props.index} // {props.index === props.endPage ? "" : props.handlePage(props.index + 1)}>{props.index + 1}} // {props.index > props.endPage-2 ? "" : props.handlePage(props.index + 2)}>{props.index + 2}} // {props.index === 1 ? props.handlePage(props.index + 3)}>{props.index + 3} : ""} // {props.index === 1 ? props.handlePage(props.index + 4)}>{props.index + 4} : ""} // {props.index === 2 ? props.handlePage(props.index + 3)}>{props.index + 3} : ""} // {props.index === props.endPage ? "" : props.handlePage(props.index + 1)} />} // props.handlePage(props.endPage)} /> // // ) // } // export default Paginations