Mailspring/app/internal_packages/composer/lib/compose-button.jsx
2017-09-26 11:46:00 -07:00

23 lines
582 B
JavaScript

import React from 'react';
import { Actions } from 'mailspring-exports';
import { RetinaImg } from 'mailspring-component-kit';
export default class ComposeButton extends React.Component {
static displayName = 'ComposeButton';
_onNewCompose = () => {
Actions.composeNewBlankDraft();
};
render() {
return (
<button
className="btn btn-toolbar item-compose"
title="Compose new message"
onClick={this._onNewCompose}
>
<RetinaImg name="toolbar-compose.png" mode={RetinaImg.Mode.ContentIsMask} />
</button>
);
}
}