import PureRenderMixin from 'react-addons-pure-render-mixin'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from './avatar'; import IconButton from './icon_button'; const ReplyIndicator = React.createClass({ propTypes: { status: ImmutablePropTypes.map.isRequired, onCancel: React.PropTypes.func.isRequired }, mixins: [PureRenderMixin], handleClick () { this.props.onCancel(); }, render () { let content = { __html: this.props.status.get('content') }; return (
{this.props.status.getIn(['account', 'display_name'])} @{this.props.status.getIn(['account', 'acct'])}
); } }); export default ReplyIndicator;