mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-29 19:40:23 -05:00
cdec45eca9
Port dfaf59d99a
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
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>
|
|
);
|
|
};
|