2015-06-14 23:53:32 -08:00
|
|
|
// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
|
|
|
|
|
// See License.txt for license information.
|
|
|
|
|
|
2015-08-31 09:35:31 -07:00
|
|
|
var Utils = require('../utils/utils.jsx');
|
2015-06-14 23:53:32 -08:00
|
|
|
|
2015-08-31 09:35:31 -07:00
|
|
|
export default class MessageWrapper extends React.Component {
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
this.state = {};
|
|
|
|
|
}
|
|
|
|
|
render() {
|
2015-06-14 23:53:32 -08:00
|
|
|
if (this.props.message) {
|
2015-08-31 09:35:31 -07:00
|
|
|
var inner = Utils.textToJsx(this.props.message, this.props.options);
|
2015-06-14 23:53:32 -08:00
|
|
|
return (
|
|
|
|
|
<div>{inner}</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
2015-08-31 09:35:31 -07:00
|
|
|
|
|
|
|
|
return <div/>;
|
2015-06-14 23:53:32 -08:00
|
|
|
}
|
2015-08-31 09:35:31 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MessageWrapper.defaultProps = {
|
|
|
|
|
message: null,
|
|
|
|
|
options: null
|
|
|
|
|
};
|
|
|
|
|
MessageWrapper.propTypes = {
|
|
|
|
|
message: React.PropTypes.string,
|
|
|
|
|
options: React.PropTypes.object
|
|
|
|
|
};
|