import React from 'react'; export default { propTypes: { permission: React.PropTypes.object.isRequired, max: React.PropTypes.number.isRequired, items: React.PropTypes.array, total: React.PropTypes.number, refresh: React.PropTypes.func.isRequired }, renderNotDisplayed() { const notDisplayedCount = this.props.total - this.props.max; return notDisplayedCount > 0 ? and {notDisplayedCount} more : null; }, renderItems() { const displayed = this.props.items.map(item => { return