_ = require 'underscore-plus'
React = require 'react/addons'
{ComponentRegistry} = require 'inbox-exports'
ThreadListItemMixin = require './thread-list-item-mixin.cjsx'
DefaultParticipants = React.createClass
render: ->
{_.pluck(@props.participants, "email").join ", "}
module.exports =
ThreadListNarrowItem = React.createClass
mixins: [ComponentRegistry.Mixin, ThreadListItemMixin]
displayName: 'ThreadListNarrowItem'
components: ["Participants"]
render: ->
Participants = @state.Participants ? DefaultParticipants
{@_subject()}
{@_snippet()}
_containerClasses: ->
React.addons.classSet
'unread': @props.unread
'selected': @props.selected
'thread-list-item': true
'thread-list-narrow-item': true