1234567891011121314151617181920212223 |
- import {t} from 'sentry/locale';
- import {NumberContainer} from 'sentry/utils/discover/styles';
- import {formatAbbreviatedNumber} from 'sentry/utils/formatters';
- type Props = {
- containerProps?: React.DetailedHTMLProps<
- React.HTMLAttributes<HTMLDivElement>,
- HTMLDivElement
- >;
- throughputPerSecond?: number;
- };
- export default function ThroughputCell({throughputPerSecond, containerProps}: Props) {
- const throughput = throughputPerSecond
- ? formatAbbreviatedNumber(throughputPerSecond)
- : '--';
- return (
- <NumberContainer {...containerProps}>
- {throughput}/{t('s')}
- </NumberContainer>
- );
- }
|