mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-29 15:13:11 +01:00
26 lines
688 B
TypeScript
26 lines
688 B
TypeScript
import { FormattedMessage, FormattedNumber } from 'react-intl';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
import styles from './index.module.scss';
|
|
|
|
export const Followers: React.FC<{
|
|
count: number;
|
|
}> = ({ count }) => {
|
|
return (
|
|
<div className={classNames(styles.box, styles.followers, styles.content)}>
|
|
<div className={styles.statLarge}>
|
|
<FormattedNumber value={count} />
|
|
</div>
|
|
|
|
<div className={styles.title}>
|
|
<FormattedMessage
|
|
id='annual_report.summary.followers.new_followers'
|
|
defaultMessage='{count, plural, one {new follower} other {new followers}}'
|
|
values={{ count }}
|
|
/>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|