import Telescope from 'meteor/nova:lib';
import React from 'react';
const PostsList = ({results, currentUser, hasMore, ready, count, totalCount, loadMore, refetchQuery, showHeader = true}) => {
if (!!results.length) {
return (
{showHeader ?
: null}
{results.map(post => )}
{hasMore ? (ready ?
:
) :
}
)
// note: we're handling the "loading" case in the container now
// } else if (!ready) {
// return (
//
// {showHeader ?
: null}
//
//
//
//
// )
} else {
return (
)
}
};
PostsList.displayName = "PostsList";
module.exports = PostsList;