import styled from '@emotion/styled'; import {formatBytesBase2} from 'sentry/utils'; import getDynamicText from 'sentry/utils/getDynamicText'; type Props = { bytes: number; className?: string; }; function FileSize(props: Props) { const {className, bytes} = props; return ( {getDynamicText({value: formatBytesBase2(bytes), fixed: 'xx KB'})} ); } const Span = styled('span')` font-variant-numeric: tabular-nums; `; export default FileSize;