mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
17 lines
334 B
TypeScript
17 lines
334 B
TypeScript
import {formatAbbreviatedNumber} from 'sentry/utils/formatters';
|
|
|
|
type Props = {
|
|
value: string | number;
|
|
className?: string;
|
|
};
|
|
|
|
function Count({value, className}: Props) {
|
|
return (
|
|
<span className={className} title={value?.toLocaleString()}>
|
|
{formatAbbreviatedNumber(value)}
|
|
</span>
|
|
);
|
|
}
|
|
|
|
export default Count;
|