import { PaginationDataSet } from '@/api/http'; const TFootPaginated = ({ pagination, span }: { span: number; pagination: PaginationDataSet }) => { const start = (pagination.currentPage - 1) * pagination.perPage; const end = (pagination.currentPage - 1) * pagination.perPage + pagination.count; return (
Showing{' '} {Math.max(start, Math.min(pagination.total, 1))} {' '} to {end} of {pagination.total} results.