import clsx from 'clsx'; import { localize } from 'i18n-calypso'; import PropTypes from 'prop-types'; import { Component } from 'react'; import AutoDirection from 'calypso/components/auto-direction'; import './post-comment-content.scss'; class PostCommentContent extends Component { static propTypes = { content: PropTypes.string.isRequired, isPlaceholder: PropTypes.bool, className: PropTypes.string, setWithDimensionsRef: PropTypes.func, }; static defaultProps = { setWithDimensionsRef: () => {}, }; render() { // Don't trust comment content unless it was provided by the API if ( this.props.isPlaceholder ) { return (