// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import {FormattedMessage} from 'mm-intl'; export default class StatisticCount extends React.Component { constructor(props) { super(props); } render() { let loading = ( ); return (
{this.props.title}
{this.props.count == null ? loading : this.props.count}
); } } StatisticCount.propTypes = { title: React.PropTypes.string.isRequired, icon: React.PropTypes.string.isRequired, count: React.PropTypes.number };