path = require 'path' React = require 'react' {RetinaImg, Flexbox} = require 'nylas-component-kit' {Utils, Actions, FileUploadStore} = require 'nylas-exports' class FileUpload extends React.Component @displayName: 'FileUpload' render: =>
{@props.upload.filename}
_onClickRemove: (event) => event.preventDefault() Actions.removeAttachment @props.upload _extension: => path.extname(@props.upload.filename)[1..-1] module.exports = FileUpload