import React from 'react';
export default function Pagination({
gotoPage,
canPreviousPage,
previousPage,
canNextPage,
nextPage,
pageCount,
pageIndex,
pageOptions,
pageSize,
setPageSize,
}) {
return (
{' '}
{' '}
{' '}
{' '}
Page{' '}
{pageIndex + 1} of {pageOptions.length}
{' '}
| Go to page:{' '}
{
const page = e.target.value ? Number(e.target.value) - 1 : 0;
gotoPage(page);
}}
style={{ width: '100px' }}
/>
{' '}
);
}