mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-28 05:23:41 +01:00
19 lines
462 B
TypeScript
19 lines
462 B
TypeScript
|
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>
|
||
|
);
|
||
|
};
|