11import * as React from 'react'
2- import { ChevronLeftIcon , ChevronRightIcon , MoreHorizontalIcon } from 'lucide-react'
2+ import RightArrowIcon from '../../../public/rightarrow.svg'
3+ import LeftArrowIcon from '../../../public/leftarrow.svg'
34
45import { cn } from '@/lib/utils'
56import { Button , buttonVariants } from '@/components/ui/button'
67
7- function Pagination ( { className, ...props } : React . ComponentProps < 'nav' > ) {
8+ function PaginationContainer ( { className, ...props } : React . ComponentProps < 'nav' > ) {
89 return (
910 < nav
1011 role = "navigation"
@@ -61,7 +62,7 @@ function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof
6162 className = { cn ( 'gap-1 px-2.5 sm:pl-2.5' , className ) }
6263 { ...props }
6364 >
64- < ChevronLeftIcon />
65+ < LeftArrowIcon />
6566 < span className = "hidden sm:block" > Previous</ span >
6667 </ PaginationLink >
6768 )
@@ -75,8 +76,8 @@ function PaginationNext({ className, ...props }: React.ComponentProps<typeof Pag
7576 className = { cn ( 'gap-1 px-2.5 sm:pr-2.5' , className ) }
7677 { ...props }
7778 >
79+ < RightArrowIcon />
7880 < span className = "hidden sm:block" > Next</ span >
79- < ChevronRightIcon />
8081 </ PaginationLink >
8182 )
8283}
@@ -89,14 +90,13 @@ function PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'
8990 className = { cn ( 'flex size-9 items-center justify-center' , className ) }
9091 { ...props }
9192 >
92- < MoreHorizontalIcon className = "size-4" />
9393 < span className = "sr-only" > More pages</ span >
9494 </ span >
9595 )
9696}
9797
9898export {
99- Pagination ,
99+ PaginationContainer ,
100100 PaginationContent ,
101101 PaginationLink ,
102102 PaginationItem ,
0 commit comments