React = require 'react'
Fields = require './fields'
{Actions} = require 'nylas-exports'
{RetinaImg} = require 'nylas-component-kit'
module.exports =
class ComposerHeaderActions extends React.Component
@displayName: 'ComposerHeaderActions'
@propTypes:
draftClientId: React.PropTypes.string.isRequired
focusedField: React.PropTypes.string
enabledFields: React.PropTypes.array.isRequired
onAdjustEnabledFields: React.PropTypes.func.isRequired
render: =>
items = []
if @props.focusedField in Fields.ParticipantFields
if Fields.Cc not in @props.enabledFields
items.push(
@props.onAdjustEnabledFields(show: [Fields.Cc]) }>Cc
)
if Fields.Bcc not in @props.enabledFields
items.push(
@props.onAdjustEnabledFields(show: [Fields.Bcc]) }>Bcc
)
if Fields.Subject not in @props.enabledFields
items.push(
@props.onAdjustEnabledFields(show: [Fields.Subject]) }>Subject
)
unless NylasEnv.isComposerWindow()
items.push(