import React, {PropTypes} from 'react' import {RetinaImg, Spinner, DraggableImg} from 'nylas-component-kit' import AttachmentComponent from './attachment-component' class ImageAttachmentComponent extends AttachmentComponent { static displayName = 'ImageAttachmentComponent'; static propTypes = { file: PropTypes.object.isRequired, download: PropTypes.object, targetPath: PropTypes.string, }; static containerRequired = false; _canAbortDownload() { return false } _imgOrLoader() { const {download, targetPath} = this.props if (download && download.percent <= 5) { return (