countCell.tsx 456 B

123456789101112131415161718
  1. import {NumberContainer} from 'sentry/utils/discover/styles';
  2. import {formatAbbreviatedNumber} from 'sentry/utils/formatters';
  3. type Props = {
  4. count: number;
  5. containerProps?: React.DetailedHTMLProps<
  6. React.HTMLAttributes<HTMLDivElement>,
  7. HTMLDivElement
  8. >;
  9. };
  10. export function CountCell({count, containerProps}: Props) {
  11. return (
  12. <NumberContainer {...containerProps}>
  13. {formatAbbreviatedNumber(count)}
  14. </NumberContainer>
  15. );
  16. }