import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import styles from './Comment.css'; import { t } from 'plugin-api/beta/client/services'; import { Slot, CommentAuthorName, CommentTimestamp, CommentContent, } from 'plugin-api/beta/client/components'; import { Icon } from 'plugin-api/beta/client/components/ui'; import { pluginName } from '../../package.json'; import FeaturedButton from '../containers/FeaturedButton'; class Comment extends React.Component { viewComment = () => { this.props.viewComment(this.props.comment.id); }; render() { const { comment, asset, root } = this.props; const slotPassthrough = { comment, asset, root }; return (
); } } Comment.propTypes = { viewComment: PropTypes.func, comment: PropTypes.object, asset: PropTypes.object, root: PropTypes.object, }; export default Comment;