interface PaginationBarProps { skip: number; top: number; currentCount: number; totalCount?: number; loading?: boolean; onPrevious: () => void; onNext: () => void; } export default function PaginationBar({ skip, top, currentCount, totalCount, loading = false, onPrevious, onNext, }: PaginationBarProps) { const from = currentCount > 0 ? skip + 1 : 0; const to = skip + currentCount; return (