import React from 'react' ; type Props = { types ? : Array < string > ; minSize ? : number ; maxSize ? : number ; } ; param { Object } fileData returns internal export default function DrawTypes ( { types , minSize , maxSize } ) { if ( types ) { const stringTypes = types . toString ( ) ; let size = "" ; if ( maxSize ) size += `size >= ${ maxSize }, ` ; if ( minSize ) size += `size <= ${ minSize }, ` ; return ( < span title = { `${ size }types: ${ stringTypes }` } className = "file-types" > { stringTypes } < /span>); } return null ; }