Skip to content
Myr

pager.tsx

This file

Path

apps/web/src/features/code/pager.tsx

33 lines · 831 bytes · TypeScript

Last changed by

Merge build/comments-web-features into mainoscabrielbefore adoption74bfc72

History of this file

Take it

Merge branch 'build/904-web-code-browser'oscabrielbefore adoption06e2229

lines 1–33why, one step back
1import {
2 Pagination,3 PaginationContent,4 PaginationItem,5 PaginationNext,6 PaginationPrevious,7} from "@/components/ui/pagination";89export const Pager = ({10 newer,11 older,12}: {13 readonly newer?: string | undefined;14 readonly older?: string | undefined;15}) =>16 newer === undefined && older === undefined ? null : (17 <Pagination className="justify-between">18 <PaginationContent>19 {newer === undefined ? null : (20 <PaginationItem>21 <PaginationPrevious href={newer} text="Newer" />22 </PaginationItem>23 )}24 </PaginationContent>25 <PaginationContent>26 {older === undefined ? null : (27 <PaginationItem>28 <PaginationNext href={older} text="Older" />29 </PaginationItem>30 )}31 </PaginationContent>32 </Pagination>33 );