import Link from 'next/link'; const Pagination = ({ page, pageSize, totalItems }) => { const totalPages = Math.ceil(totalItems / pageSize); return (
{page > 1 ? ( Previous ) : null} {' '} Page {page} of {totalPages} {page < totalPages ? ( Next ) : null}
); }; export default Pagination;