()
| 84 | }; |
| 85 | |
| 86 | render() { |
| 87 | const { headline, isPending, styleType } = this.props; |
| 88 | const content = isPending ? this.renderListSkeleton() : this.renderList(); |
| 89 | |
| 90 | return ( |
| 91 | <div className={c('Statistics', Classes.CALLOUT, styleType)}> |
| 92 | {headline && ( |
| 93 | <h5 |
| 94 | className={c( |
| 95 | Classes.HEADING, |
| 96 | 'Statistics__headline', |
| 97 | Classes.SKELETON && isPending |
| 98 | )} |
| 99 | > |
| 100 | {headline} |
| 101 | </h5> |
| 102 | )} |
| 103 | <ul className="Statistics__list">{content}</ul> |
| 104 | </div> |
| 105 | ); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | export default Statistics; |
nothing calls this directly
no test coverage detected