import React from 'react'; import {Button, Icon} from 'react-mdl'; import timeago from 'timeago.js'; import styles from './CommentList.css'; import I18n from 'coral-framework/modules/i18n/i18n'; import translations from '../translations.json'; import Linkify from 'react-linkify'; const linkify = new Linkify(); // Render a single comment for the list export default props => { const links = linkify.getMatches(props.comment.get('body')); return (
{lang.t('comment.banned-user')}
: null} {props.comment.get('flagged') ?{lang.t('comment.flagged')}
: null}