// The controls for a paged list; the page state itself is hooks/usePagination. export function Pagination({ page, pageCount, onPrev, onNext, onJump, }: { page: number; pageCount: number; onPrev: () => void; onNext: () => void; // Given this, the page number is a list to pick any page from. onJump?: (page: number) => void; }) { if (pageCount <= 1) return null; return (