app/scripts/components/scorekeeper/score_note.cjsx
React = require 'react/addons'
cx = React.addons.classSet
module.exports = React.createClass
displayName: 'ScoreNote'
propTypes:
note: React.PropTypes.string
noteContent: () ->
switch @props.note
when 'injury' then 'Injury'
when 'calloff' then 'Call'
when 'nopass' then 'No P.'
when 'lead' then 'Lead'
when 'lost' then 'Lost'
else <span> </span>
render: () ->
noteClass = cx
'box-primary': @props.note?
'bt-box box-default text-center': true
<div className={noteClass}>
<strong>{@noteContent()}</strong>
</div>