count.tsx 354 B

123456789101112131415161718
  1. import {formatAbbreviatedNumber} from 'app/utils/formatters';
  2. type Props = {
  3. value: string | number;
  4. className?: string;
  5. };
  6. function Count(props: Props) {
  7. const {value, className} = props;
  8. return (
  9. <span className={className} title={value.toLocaleString()}>
  10. {formatAbbreviatedNumber(value)}
  11. </span>
  12. );
  13. }
  14. export default Count;