"use client"; interface PaginationProps { offset: number; limit: number; total: number; onPageChange: (newOffset: number) => void; } export function Pagination({ offset, limit, total, onPageChange }: PaginationProps) { const currentPage = Math.floor(offset / limit) + 1; const totalPages = Math.max(1, Math.ceil(total / limit)); if (totalPages <= 1) return null; return (
Page {currentPage} of {totalPages}
); }