2016-11-17 20:42:16 +01:00
|
|
|
import Telescope from 'meteor/nova:lib';
|
2016-04-19 15:45:36 +09:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
const CommentsLoadMore = ({loadMore, count, totalCount}) => {
|
|
|
|
const label = totalCount ? `Load More (${count}/${totalCount})` : "Load More";
|
2016-05-03 12:44:50 +09:00
|
|
|
return <a className="comments-load-more" onClick={loadMore}>{label}</a>
|
2016-04-19 15:45:36 +09:00
|
|
|
}
|
|
|
|
|
2016-05-22 16:42:24 +09:00
|
|
|
CommentsLoadMore.displayName = "CommentsLoadMore";
|
|
|
|
|
2016-11-17 20:42:16 +01:00
|
|
|
Telescope.registerComponent('CommentsLoadMore', CommentsLoadMore);
|