mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
18 lines
No EOL
767 B
JavaScript
18 lines
No EOL
767 B
JavaScript
const PostItem = props => {
|
|
|
|
({PostCategories, PostItemCommenters} = Telescope.components);
|
|
|
|
return (
|
|
<div className="post" style={{borderBottom: "2px solid #eee", paddingBottom: "10px", marginBottom: "10px"}}>
|
|
<h3 className="post-title"><a href={Posts.getLink(props)} target={Posts.getLinkTarget(props)}>{props.title}</a></h3>
|
|
{props.categoriesArray ? <PostCategories categories={props.categoriesArray} /> : ""}
|
|
<p>{Users.getDisplayName(props.user)}, {moment(props.postedAt).fromNow()}, {props.commentCount} comments</p>
|
|
<a href={Posts.getEditUrl(props)}>Edit</a>
|
|
{props.commentersArray ? <PostItemCommenters commenters={props.commentersArray}/> : ""}
|
|
</div>
|
|
)
|
|
};
|
|
|
|
// export default PostItem;
|
|
|
|
module.exports = PostItem; |