import React from "react" ; import { prettyBytes } from "helpers/pretty-bytes" ; type Props = { value : number ; } ; export const FileSize = ( { value } ) => { if ( ! value || isNaN ( value ) ) return null ; return < > { prettyBytes ( value ) } < />; } ;