UNPKG

violet-paginator

Version:

Display, paginate, sort, filter, and update items from the server. violet-paginator is a complete list management library for react/redux applications.

20 lines (16 loc) 449 B
import React, { PropTypes } from 'react' import { flip } from './decorators' export function Next({ pageActions, hasNextPage }) { return ( <button type="button" disabled={!hasNextPage} onClick={pageActions.next}> <i className="fa fa-chevron-right" /> </button> ) } Next.propTypes = { pageActions: PropTypes.shape({ next: PropTypes.func.isRequired }).isRequired, hasNextPage: PropTypes.bool } export default flip(Next)