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
  • {this.renderItem(item)}
  • ; }); return ( ); }, renderCount() { return ( ); }, render() { return (
  • {this.renderTitle()}
    {this.props.items ? this.renderItems() : this.renderCount()}
  • ); } };