/* An item in the comments list. Note: Comments.options.mutations.edit.check is defined in modules/comments/mutations.js and is used both on the server when performing the mutation, and here to check if the form link should be displayed. */ import React from 'react'; import { Components, registerComponent } from 'meteor/vulcan:core'; import Comments from '../../modules/comments/collection.js'; import CommentsEditForm from './CommentsEditForm.jsx'; const CommentsItem = ({comment, currentUser}) =>
{comment.body}
{Comments.options.mutations.edit.check(currentUser, comment) ?