import React from 'react' import PropTypes from 'prop-types' import { translate, Interpolate } from 'react-i18next' import TimeAgo from 'timeago-react' import { Button } from 'reactstrap' export class ArticleComment extends React.Component { static propTypes = { article: PropTypes.object.isRequired, comment: PropTypes.func.isRequired, deleteComment: PropTypes.func.isRequired, showCommentPopup: PropTypes.func.isRequired, i18n: PropTypes.object.isRequired, t: PropTypes.func.isRequired } onEdit = () => { const { showCommentPopup, article, comment } = this.props showCommentPopup(article, comment) } onDelete = () => { const { deleteComment, article, comment } = this.props deleteComment(comment.id, article.id) } render() { const { comment, i18n } = this.props return (

{comment.title} {comment.content}

) } } export default translate(['tabsContent'], { wait: true })(ArticleComment)