path = require 'path'
React = require 'react'
AttachmentComponent = require './attachment-component'
{RetinaImg, Spinner, DraggableImg} = require 'nylas-component-kit'
class ImageAttachmentComponent extends AttachmentComponent
@displayName: 'ImageAttachmentComponent'
render: =>
{@_renderFileActions()}
{@props.file.displayName()}
{@_imgOrLoader()}
_canAbortDownload: -> false
_renderRemoveIcon: ->
_renderDownloadButton: ->
_imgOrLoader: ->
if @props.download and @props.download.percent <= 5
else if @props.download and @props.download.percent < 100
else
module.exports = ImageAttachmentComponent