import React from 'react'; import { RetinaImg } from 'mailspring-component-kit'; import { localized, PropTypes, Actions } from 'mailspring-exports'; export class DraftDeleteButton extends React.Component<{ selection: any }> { static displayName = 'DraftDeleteButton'; static containerRequired = false; static propTypes = { selection: PropTypes.object.isRequired, }; render() { return ( ); } _onDestroySelected = () => { for (const item of this.props.selection.items()) { Actions.destroyDraft(item); } this.props.selection.clear(); return; }; }