Files
mattermost/web/react/components/message_wrapper.jsx

18 lines
459 B
React
Raw Normal View History

2015-06-14 23:53:32 -08:00
// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
// See License.txt for license information.
var utils = require('../utils/utils.jsx');
module.exports = React.createClass({
render: function() {
if (this.props.message) {
var inner = utils.textToJsx(this.props.message, this.props.options);
return (
<div>{inner}</div>
);
} else {
return <div/>
}
}
});