import React from 'react'; interface CursorPaginationProps { currentPage: number; hasNextPage: boolean; hasPreviousPage: boolean; onNextPage: () => void; onPreviousPage: () => void; } const CursorPagination: React.FC = ({ currentPage, hasNextPage, hasPreviousPage, onNextPage, onPreviousPage, }) => { return (
{/* Previous button */} {/* Current page indicator */} Page {currentPage} {/* Next button */}
); }; export default CursorPagination;