import React from 'react'; import isLink from '../helpers/isLink'; import Link from './Link'; const name = 'coral-plugin-comment-content'; const CommentContent = ({comment}) => { const textbreaks = comment.body.split('\n'); return
{ textbreaks.map((line, i) => { return ( {line.split(' ').map((w) => isLink(w) ? : ` ${w}`)}
); }) }
; }; export default CommentContent;