import React from 'react'; import PropTypes from 'prop-types'; import { map, isInteger } from 'lodash'; import { Pagination, PaginationItem, PaginationLink, Col } from './../../../../components'; const mapToFa = { '<': , '<<': , '>': , '>>': } export const CustomPaginationPanel = ({ onPageChange, pages, ...otherProps }) => ( { map(pages, page => ( onPageChange(page.page)}> { isInteger(page.page) ? page.page : mapToFa[page.page] } )) } ); CustomPaginationPanel.propTypes = { pages: PropTypes.array, onPageChange: PropTypes.func };