import React from 'react' ; import { EuiPagination } from '@elastic/eui' ; interface Props { current : number ; totalPages : number ; onChange ( pageNumber ) : void ; 'aria-label' : string ; } export const PagingView = ( { current , onChange , totalPages , 'aria-label' : ariaLabel , } ) => ( < EuiPagination pageCount = { totalPages } activePage = { current - 1 } onPageClick = { ( page ) => onChange ( page + 1 ) } aria - label = { ariaLabel } />);