mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
19 lines
456 B
TypeScript
19 lines
456 B
TypeScript
import {NumberContainer} from 'sentry/utils/discover/styles';
|
|
import {formatAbbreviatedNumber} from 'sentry/utils/formatters';
|
|
|
|
type Props = {
|
|
count: number;
|
|
containerProps?: React.DetailedHTMLProps<
|
|
React.HTMLAttributes<HTMLDivElement>,
|
|
HTMLDivElement
|
|
>;
|
|
};
|
|
|
|
export function CountCell({count, containerProps}: Props) {
|
|
return (
|
|
<NumberContainer {...containerProps}>
|
|
{formatAbbreviatedNumber(count)}
|
|
</NumberContainer>
|
|
);
|
|
}
|