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