import * as React from "react"; import { ChevronLeft, ChevronRight } from "lucide-react"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; interface PaginationProps { /** * Current page number (1-indexed) */ currentPage: number; /** * Total number of pages */ totalPages: number; /** * Callback when page changes */ onPageChange: (page: number) => void; /** * Optional className for styling */ className?: string; } /** * Pagination component for navigating through paginated content * * @example * setCurrentPage(page)} * /> */ export const Pagination: React.FC = ({ currentPage, totalPages, onPageChange, className, }) => { if (totalPages <= 1) { return null; } return (
Page {currentPage} of {totalPages}
); };