mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
11 lines
No EOL
438 B
JavaScript
11 lines
No EOL
438 B
JavaScript
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={e => { e.preventDefault(); loadMore();}}>{label}</a>
|
|
}
|
|
|
|
CommentsLoadMore.displayName = "CommentsLoadMore";
|
|
|
|
Telescope.registerComponent('CommentsLoadMore', CommentsLoadMore); |