import React from 'react'; import { Button } from '@/components/ui/button'; import { __ } from '@/lib/i18n'; interface PaginationProps { page: number; perPage: number; total: number; onPageChange: (newPage: number) => void; className?: string; } export function Pagination({ page, perPage, total, onPageChange, className = '' }: PaginationProps) { if (total <= perPage) return null; const startItem = ((page - 1) * perPage) + 1; const endItem = Math.min(page * perPage, total); const totalPages = Math.ceil(total / perPage); return (