You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
564 B

  1. import React from 'react';
  2. import { FormattedMessage } from 'react-intl';
  3. import PropTypes from 'prop-types';
  4. export default class LoadPending extends React.PureComponent {
  5. static propTypes = {
  6. onClick: PropTypes.func,
  7. count: PropTypes.number,
  8. }
  9. render() {
  10. const { count } = this.props;
  11. return (
  12. <button className='load-more load-gap' onClick={this.props.onClick}>
  13. <FormattedMessage id='load_pending' defaultMessage='{count, plural, one {# new item} other {# new items}}' values={{ count }} />
  14. </button>
  15. );
  16. }
  17. }