mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
23 lines
558 B
React
23 lines
558 B
React
|
import React from 'react';
|
||
|
import {Actions} from 'nylas-exports';
|
||
|
import {RetinaImg} from 'nylas-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>
|
||
|
);
|
||
|
}
|
||
|
}
|