2015-06-16 13:18:34 -04:00
|
|
|
var React = require('react');
|
|
|
|
|
2015-06-19 07:53:48 -04:00
|
|
|
var MEmoteTileController = require("../../controllers/molecules/MEmoteTile");
|
|
|
|
|
2015-06-16 13:18:34 -04:00
|
|
|
module.exports = React.createClass({
|
2015-06-19 11:21:09 -04:00
|
|
|
displayName: 'MEmoteTile',
|
2015-06-19 07:53:48 -04:00
|
|
|
mixins: [MEmoteTileController],
|
|
|
|
|
2015-06-16 13:18:34 -04:00
|
|
|
render: function() {
|
|
|
|
var mxEvent = this.props.mxEvent;
|
|
|
|
var content = mxEvent.getContent();
|
|
|
|
var name = mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender();
|
|
|
|
return (
|
|
|
|
<span className="mx_MEmoteTile">
|
|
|
|
{name} {content.body}
|
|
|
|
</span>
|
|
|
|
);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|