import Telescope from 'meteor/nova:lib'; import React from 'react'; import Posts from 'meteor/nova:posts'; import { withSingle } from 'meteor/nova:core'; const PostsPage = (props) => { if (props.data.loading) { return
} else { const post = props.data.post; const htmlBody = {__html: post.htmlBody}; return (
{post.htmlBody ?
: null} {/**/}
) } }; PostsPage.displayName = "PostsPage"; PostsPage.propTypes = { document: React.PropTypes.object } const options = { collection: Posts, queryName: 'postsSingleQuery', }; Telescope.registerComponent('PostsPage', PostsPage/*, withSingle(options)*/);