count.tsx 334 B

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