Vulcan/packages/nova-base-components/lib/comments/CommentsLoadMore.jsx

11 lines
407 B
React
Raw Normal View History

import Telescope from 'meteor/nova:lib';
import React from 'react';
const CommentsLoadMore = ({loadMore, count, totalCount}) => {
const label = totalCount ? `Load More (${count}/${totalCount})` : "Load More";
return <a className="comments-load-more" onClick={loadMore}>{label}</a>
}
CommentsLoadMore.displayName = "CommentsLoadMore";
Telescope.registerComponent('CommentsLoadMore', CommentsLoadMore);