remote = require 'remote'
React = require 'react'
{Actions, NylasAPI, NamespaceStore} = require 'nylas-exports'
{RetinaImg, ButtonDropdown, Menu} = require 'nylas-component-kit'
class MessageControls extends React.Component
@displayName: "MessageControls"
@propTypes:
thread: React.PropTypes.object.isRequired
message: React.PropTypes.object.isRequired
constructor: (@props) ->
render: =>
}
primaryClick={@_onReply}
menu={@_dropdownMenu()}/>
_dropdownMenu: ->
items = [{
name: 'Reply All',
image: 'ic-dropdown-replyall.png'
select: @_onReplyAll
},{
name: 'Forward',
image: 'ic-dropdown-forward.png'
select: @_onForward
}]
itemContent = (item) ->
{item.name}