_ = require 'underscore-plus' React = require 'react' {FocusedThreadStore} = require 'inbox-exports' module.exports = MessageSubjectItem = React.createClass displayName: 'MessageSubjectItem' getInitialState: -> @_getStateFromStores() componentDidMount: -> @_unsubscriber = FocusedThreadStore.listen @_onChange componentWillUnmount: -> @_unsubscriber() if @_unsubscriber render: ->