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