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

28 lines
728 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
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
<Telescope.components.HeadTags url={Posts.getLink(post)} title={post.title} image={post.thumbnailUrl} />
<Telescope.components.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
<Telescope.components.PostsCommentsThread document={post} currentUser={currentUser}/>
2016-02-18 16:26:52 +09:00
</div>
)
};
PostsPage.displayName = "PostsPage";
module.exports = PostsPage;
export default PostsPage;