/* List of movies. Wrapped with the "withList" and "withCurrentUser" containers. */ import React from 'react'; import { Components, withCurrentUser, registerComponent } from 'meteor/vulcan:core'; import Movies from '../../modules/movies/index.js'; const ReactionCell = ({column, document, currentUser}) => const MoviesList = ({results = [], currentUser, loading, loadMore, count, totalCount}) =>
{loading ? :
{/* new document form */} {Movies.options.mutations.new.check(currentUser) ?

Insert New Document

: null } {/* documents list */} {/* load more */} {totalCount > results.length ? {e.preventDefault(); loadMore();}}>Load More ({count}/{totalCount}) :

No more items.

}
}
registerComponent('MoviesList', MoviesList, withCurrentUser);