Vulcan/packages/nova-base-components/lib/posts/PostsPage.jsx

28 lines
747 B
React
Raw Normal View History

import React from 'react';
2016-04-14 10:12:35 +09:00
const PostsPage = ({document, currentUser}) => {
2016-02-18 16:26:52 +09:00
({PostsCommentsThread, PostsItem, PostsCategories, SocialShare, Vote, PostsStats, HeadTags} = Telescope.components);
2016-02-18 16:26:52 +09:00
const post = document;
2016-02-23 11:34:40 +09:00
const htmlBody = {__html: post.htmlBody};
2016-02-18 16:26:52 +09:00
return (
<div className="posts-page">
2016-02-18 16:26:52 +09:00
<HeadTags url={Posts.getLink(post)} title={post.title} image={post.thumbnailUrl} />
2016-04-14 10:12:35 +09:00
<PostsItem post={post}/>
2016-03-22 10:38:57 +09:00
<div className="posts-page-body" dangerouslySetInnerHTML={htmlBody}></div>
2016-03-22 10:38:57 +09:00
{/*<SocialShare url={ Posts.getLink(post) } title={ post.title }/>*/}
2016-02-18 16:26:52 +09:00
<PostsCommentsThread document={post} currentUser={currentUser}/>
2016-02-18 16:26:52 +09:00
</div>
)
};
module.exports = PostsPage;
export default PostsPage;