resourceSize.tsx 311 B

123456789101112131415161718
  1. import {Fragment} from 'react';
  2. import FileSize from 'sentry/components/fileSize';
  3. type Props = {
  4. bytes?: number;
  5. };
  6. function ResourceSize(props: Props) {
  7. const {bytes} = props;
  8. if (!bytes) {
  9. return <Fragment>--</Fragment>;
  10. }
  11. return <FileSize bytes={bytes} />;
  12. }
  13. export default ResourceSize;