React = require "react" {RetinaImg} = require 'nylas-component-kit' {Actions, FocusedContentStore} = require "nylas-exports" class DraftDeleteButton extends React.Component @displayName: 'DraftDeleteButton' @containerRequired: false @propTypes: selection: React.PropTypes.object.isRequired render: -> _destroySelected: => for item in @props.selection.items() Actions.destroyDraft(item.id) @props.selection.clear() return module.exports = {DraftDeleteButton}