element-web/src/molecules/MEmoteTile.js

16 lines
401 B
JavaScript
Raw Normal View History

2015-06-16 17:18:34 +00:00
var React = require('react');
module.exports = React.createClass({
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>
);
},
});