import React, {component} from 'react';
import { Icon, Button, Card, Row, Col , CardPanel} from 'react-materialize';
import {Pagination } from 'react-materialize';


export class Paginator extends React.Component{

	constructor(props){
		super(props);
		
	}

	render(){

		const currentPage = parseInt(this.props.pagination.currentPage) || 1;
   		const lastPage = parseInt(this.props.pagination.lastPage) || 1;
   		return(
   				<Pagination items={lastPage} activePage={currentPage} maxButtons={5} />
   			)
		
	}
}