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.
19 lines
462 B
19 lines
462 B
1 year ago
|
import { FormattedMessage } from 'react-intl';
|
||
|
|
||
|
interface Props {
|
||
|
onClick: (event: React.MouseEvent) => void;
|
||
|
count: number;
|
||
|
}
|
||
|
|
||
|
export const LoadPending: React.FC<Props> = ({ onClick, count }) => {
|
||
|
return (
|
||
|
<button className='load-more load-gap' onClick={onClick}>
|
||
|
<FormattedMessage
|
||
|
id='load_pending'
|
||
|
defaultMessage='{count, plural, one {# new item} other {# new items}}'
|
||
|
values={{ count }}
|
||
|
/>
|
||
|
</button>
|
||
|
);
|
||
|
};
|