import React from 'react' import PropTypes from 'prop-types' import { CX } from '../constants' const COLORS = { primary: 'primary', brand: 'brand', } class Pagination extends React.PureComponent { handleClickIndex = (i) => { this.props.onClick(i) } render() { const { activeIndex, color, count, } = this.props if (isNaN(count)) return return ( ) } } Pagination.propTypes = { activeIndex: PropTypes.number.isRequired, color: PropTypes.string.isRequired, count: PropTypes.number.isRequired, onClick: PropTypes.number.isRequired, } Pagination.defaultProps = { color: COLORS.primary, } export default Pagination