diff --git a/app/api/namespaces/product.ts b/app/api/namespaces/product.ts index bd0f47e..d16d16a 100644 --- a/app/api/namespaces/product.ts +++ b/app/api/namespaces/product.ts @@ -68,6 +68,7 @@ export type ProductListAppliedSort = { value: 'asc' | 'desc' }[] +export const ITEMS_PER_PAGE = 12 export const PRODUCT_LIST_FILTER_TRUE = 'T' export const PRODUCT_LIST_FILTER_FALSE = 'F' export const PRODUCT_LIST_FILTER_NONE = 'none' diff --git a/app/components/ui/Pagination.tsx b/app/components/ui/Pagination.tsx new file mode 100644 index 0000000..2af9694 --- /dev/null +++ b/app/components/ui/Pagination.tsx @@ -0,0 +1,126 @@ +import { ChevronLeftIcon, ChevronRightIcon, ChevronsLeft, ChevronsRight, MoreHorizontalIcon } from 'lucide-react' + +import { cn } from '~/utils/ui' +import type { Button } from '~/components/ui/Button' +import { buttonVariants } from '~/components/ui/Button' +import type { ComponentProps, ReactElement } from 'react' + +export function Pagination({ className, ...properties }: ComponentProps<'nav'>): ReactElement { + return ( +