import React from 'react'; import cn from 'classnames'; import styles from './FeaturedComment.css'; import {name} from '../../package.json'; import {timeago} from 'coral-framework/services/i18n'; import {Slot} from 'plugin-api/beta/client/components'; import {Icon} from 'plugin-api/beta/client/components/ui'; class FeaturedComment extends React.Component { viewComment = () => { this.props.viewComment(this.props.comment.id); } render() { const {comment, asset} = this.props; return (
{comment.body}
{comment.user.username} ,{' '}{timeago(comment.created_at)}
); } } export default FeaturedComment;