import React from 'react'; import { Pagination } from 'UI'; import { numberWithCommas } from 'App/utils'; function FullPagination({ page, limit, total, listLen, onPageChange, entity, }: { page: number; limit: number; total: number; listLen: number; onPageChange: (page: number) => void; entity?: string; }) { return (
{'Showing '} {(page - 1) * limit + 1} {' to '} {(page - 1) * limit + listLen} {' of '} {numberWithCommas(total)} {entity ? ` ${entity}.` : '.'}
); } export default FullPagination;