mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
10 lines
No EOL
334 B
JavaScript
10 lines
No EOL
334 B
JavaScript
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";
|
|
|
|
module.exports = CommentsLoadMore; |