import React from 'react'; import _ from 'lodash'; const Paginator = (props) => { let {totalRecords=0, currentPage=1, pageSize=15} = props; let pages = [1]; let previousItemStyle = totalRecordspageSize){ pages = _.times(parseInt(totalRecords/pageSize,10)); } const onPrevious = ()=>{ props.previousPage(); } const onNext = ()=>{ props.nextPage(); } const onPageClick = (pageNum)=>{ props.goToNextPage(pageNum) } return ( ) } export default Paginator;