count.tsx 382 B

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