import { h } from 'preact';
import PropTypes from 'prop-types';
import { Button } from '../../crayons/Button';
export const CommentsCount = ({ count, articlePath }) => {
const commentsSVG = () => (
);
if (count > 0) {
return (
);
}
if (count === 0) {
return (
);
}
return null;
};
CommentsCount.defaultProps = {
count: 0,
};
CommentsCount.propTypes = {
count: PropTypes.number,
articlePath: PropTypes.string.isRequired,
};
CommentsCount.displayName = 'CommentsCount';