import Telescope from 'meteor/nova:lib'; import React from 'react'; import {FormattedMessage } from 'react-intl'; import { ModalTrigger } from "meteor/nova:core"; import Comments from "meteor/nova:comments"; const PostsCommentsThread = (props, context) => { const {postId, results, commentCount} = props; const resultsClone = _.map(results, _.clone); // we don't want to modify the objects we got from props const nestedComments = Telescope.utils.unflatten(resultsClone, '_id', 'parentCommentId'); return (

{ context.currentUser ?

:
}>
}
); }; PostsCommentsThread.displayName = "PostsCommentsThread"; PostsCommentsThread.contextTypes = { currentUser: React.PropTypes.object }; module.exports = PostsCommentsThread; export default PostsCommentsThread;