mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
17 lines
529 B
CoffeeScript
17 lines
529 B
CoffeeScript
React = require 'react'
|
|
{Message, Actions, AccountStore} = require 'nylas-exports'
|
|
{RetinaImg} = require 'nylas-component-kit'
|
|
|
|
class ComposeButton extends React.Component
|
|
@displayName: 'ComposeButton'
|
|
|
|
render: =>
|
|
<button className="btn btn-toolbar item-compose"
|
|
title="Compose new message"
|
|
onClick={@_onNewCompose}>
|
|
<RetinaImg name="toolbar-compose.png" mode={RetinaImg.Mode.ContentIsMask}/>
|
|
</button>
|
|
|
|
_onNewCompose: => Actions.composeNewBlankDraft()
|
|
|
|
module.exports = ComposeButton
|