{Utils, React, FocusedContactsStore, AccountStore, Actions} = require 'nylas-exports' {RetinaImg} = require 'nylas-component-kit' FeedbackActions = require './feedback-actions' class FeedbackButton extends React.Component @displayName: 'FeedbackButton' constructor: (@props) -> @state = {newMessages: false} componentDidMount: => @_unsubs = [] @_unsubs.push Actions.sendFeedback.listen(@_onSendFeedback) @_unsubs.push FeedbackActions.feedbackAvailable.listen(@_onFeedbackAvailable) componentWillUnmount: => unsub() for unsub in @_unsubs render: =>