React = require 'react'
{Message, Actions, NamespaceStore} = require 'nylas-exports'
{RetinaImg} = require 'nylas-component-kit'

class ComposeButton extends React.Component
  @displayName: 'ComposeButton'

  render: =>
    <button style={order: 101}
            className="btn btn-toolbar"
            data-tooltip="Compose new message"
            onClick={@_onNewCompose}>
      <RetinaImg name="toolbar-compose.png" mode={RetinaImg.Mode.ContentIsMask}/>
    </button>

  _onNewCompose: => Actions.composeNewBlankDraft()

module.exports = ComposeButton
