import { Components, registerComponent, withDocument, withCurrentUser } from 'meteor/nova:core';
import React from 'react';
import Posts from 'meteor/nova:posts';
const PostsPage = (props) => {
if (props.loading) {
return
} else {
const post = props.document;
const htmlBody = {__html: post.htmlBody};
return (
)
}
};
PostsPage.displayName = "PostsPage";
PostsPage.propTypes = {
document: React.PropTypes.object
}
const options = {
collection: Posts,
queryName: 'postsSingleQuery',
fragmentName: 'PostsPage',
};
registerComponent('PostsPage', PostsPage, withCurrentUser, [withDocument, options]);