import React from 'react' import styles from './Item.module.scss' import filesize from 'filesize' import Dotdotdot from 'react-dotdotdot' const Item = ({ item, removeFile }: { item: { url: string found: boolean contentType: string contentLength: string } removeFile(): void }) => (
  • {item.url}
    URL {item.found ? 'confirmed' : ' not confirmed'} {item.found && item.contentLength ? filesize(item.contentLength) : 'unknown size'} {item.found && item.contentType ? item.contentType.split('/')[1] : 'unknown type'}
  • ) export default Item