import { localize } from 'i18n-calypso'; import PropTypes from 'prop-types'; import './comment-count.scss'; const CommentCount = ( { count, translate } ) => { let countPhrase; if ( count > 0 ) { countPhrase = ( { translate( '%(commentCount)d comment', '%(commentCount)d comments', { count, args: { commentCount: count, }, } ) } ); } else { countPhrase = translate( '{{span}}No comments{{/span}} - add the first!', { components: { span: , }, } ); } return