mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00

- Posts, Comments, Users, etc. are always pluralized. - CSS classes are based off component names (PostsTitle -> posts-title)
21 lines
No EOL
637 B
JavaScript
21 lines
No EOL
637 B
JavaScript
import React from 'react';
|
|
|
|
const PostsCommenters = ({post}) => {
|
|
return (
|
|
<div className="posts-commenters">
|
|
<div className="posts-commenters-avatars">
|
|
{post.commentersArray.map(user => <UsersAvatar key={user._id} user={user}/>)}
|
|
</div>
|
|
<div className="posts-commenters-discuss">
|
|
<a href={Posts.getPageUrl(post)}>
|
|
<Icon name="comment" />
|
|
<span className="posts-commenters-comments-count">{post.commentCount}</span>
|
|
<span className="sr-only">Comments</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
module.exports = PostsCommenters;
|
|
export default PostsCommenters; |