Vulcan/packages/base-components/lib/posts/list/PostCommenters.jsx

12 lines
294 B
React
Raw Normal View History

const PostCommenters = ({commenters}) => {
2016-02-19 10:12:08 +09:00
return (
<div className="post-commenters">
<h4>Comments by</h4>
<ul>
{commenters.map(commenter => <li key={commenter._id}>{Users.getDisplayName(commenter)}</li>)}
2016-02-19 10:12:08 +09:00
</ul>
</div>
)
}
module.exports = PostCommenters;