{ComponentRegistry, NamespaceStore} = require "inbox-exports"
React = require "react"
_ = require "underscore-plus"
SORT = false
DefaultChip = React.createClass
render: ->
display = @props.participant.name? and @props.participant.name or @props.participant.email
{display}
# Parameters
# clickable (optional) - is this currently clickable?
# thread (optional) - thread context for sorting
# context (optional) - additional information for determining appearance,
# passed into the ParticipantChip
# - 'primary'
# - 'list'
module.exports = React.createClass
mixins: [ComponentRegistry.Mixin]
components: ["ParticipantChip"]
render: ->
ParticipantChip = @state.ParticipantChip ? DefaultChip
chips = @getParticipants().map (p) =>