secret/components/PaginationImproved.js
2023-09-13 20:22:28 +05:30

40 lines
891 B
JavaScript

import Pagination from './Pagination'
export default function PaginationImproved({
currentPageAdvance,
currentPage,
prevHref,
nextHref,
isFirst,
isLast,
goToPreviousPage,
goToNextPage,
totalPages,
}) {
return (
<>
<div style={{ display: 'none' }}>
<Pagination
currentPage={currentPageAdvance}
prevHref={prevHref}
nextHref={nextHref}
isFirst={isFirst}
isLast={isLast}
goToPreviousPage={goToPreviousPage}
goToNextPage={goToNextPage}
totalPages={totalPages}
/>
</div>
<Pagination
currentPage={currentPage}
prevHref={prevHref}
nextHref={nextHref}
isFirst={isFirst}
isLast={isLast}
goToPreviousPage={goToPreviousPage}
goToNextPage={goToNextPage}
totalPages={totalPages}
/>
</>
)
}