import { h } from 'preact'; import PropTypes from 'prop-types'; import { Button } from '../../crayons/Button'; import { locale } from '../../utilities/locale'; export const CommentsCount = ({ count, articlePath, articleTitle }) => { const commentsSVG = () => ( ); const commentsAriaLabelText = `Add a comment to post - ${articleTitle}`; if (count > 0) { return ( ); } if (count === 0) { return ( ); } return null; }; CommentsCount.defaultProps = { count: 0, }; CommentsCount.propTypes = { count: PropTypes.number, articlePath: PropTypes.string.isRequired, articleTitle: PropTypes.string.isRequired, }; CommentsCount.displayName = 'CommentsCount';