/* 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 { Components, withList, withCurrentUser, Loading } from 'meteor/vulcan:core'; import Comments from '../../modules/comments/collection.js'; import CommentsItem from './CommentsItem.jsx'; const CommentsList = ({results = [], currentUser, loading, loadMore, count, totalCount}) =>
{loading ? :
{results.map(comment => )}
}
const options = { collection: Comments, fragmentName: 'CommentsItemFragment', }; export default withList(options)(withCurrentUser(CommentsList));