]> cat aescling's git repositories - mastodon.git/blob - app/javascript/mastodon/components/load_pending.js
Merge branch 'main' into glitch-soc/merge-upstream
[mastodon.git] / app / javascript / mastodon / components / load_pending.js
1 import React from 'react';
2 import { FormattedMessage } from 'react-intl';
3 import PropTypes from 'prop-types';
4
5 export default class LoadPending extends React.PureComponent {
6
7 static propTypes = {
8 onClick: PropTypes.func,
9 count: PropTypes.number,
10 }
11
12 render() {
13 const { count } = this.props;
14
15 return (
16 <button className='load-more load-gap' onClick={this.props.onClick}>
17 <FormattedMessage id='load_pending' defaultMessage='{count, plural, one {# new item} other {# new items}}' values={{ count }} />
18 </button>
19 );
20 }
21
22 }
This page took 0.078961 seconds and 4 git commands to generate.