File size: 548 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import React from 'react';
import { Link } from 'react-router-dom';
const CommentIndexItem = ({ comment, author }) => (
<div className="comment-container">
<Link
to={`/${author.userUrl}`} replace
className="comment-thumbnail"
style={{ backgroundImage: `url(${author.profilePictureUrl})` }}
/>
<div className="comment-body">
<Link to={`/${author.userUrl}`} replace>
{author.fname} {author.lname}
</Link>
{' '}
{comment.body}
</div>
</div>
);
export default CommentIndexItem; |