/* List of comments. Wrapped with the "withList" and "withCurrentUser" containers. All props except currentUser are passed by the withList container. */ import React from 'react'; import { registerComponent, Components, withList, withCurrentUser, Loading } from 'meteor/vulcan:core'; import Comments from '../../modules/comments/collection.js'; const CommentsList = ({results = [], currentUser, loading, loadMore, count, totalCount, pic}) =>
{loading ? :
{results.map(comment => )}
}
const options = { collection: Comments, fragmentName: 'CommentsItemFragment', }; registerComponent('CommentsList', CommentsList, withCurrentUser, [withList, options]);