From 12896bd23eeba79884245c1c29fdc568cf21a7fa Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Mon, 14 Mar 2016 08:50:46 -0400
Subject: Converting to Webpack. Stage 1.

---
 webapp/components/message_wrapper.jsx | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 webapp/components/message_wrapper.jsx

(limited to 'webapp/components/message_wrapper.jsx')

diff --git a/webapp/components/message_wrapper.jsx b/webapp/components/message_wrapper.jsx
new file mode 100644
index 000000000..5e9939efa
--- /dev/null
+++ b/webapp/components/message_wrapper.jsx
@@ -0,0 +1,28 @@
+// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+import * as TextFormatting from 'utils/text_formatting.jsx';
+
+import React from 'react';
+
+export default class MessageWrapper extends React.Component {
+    constructor(props) {
+        super(props);
+        this.state = {};
+    }
+    render() {
+        if (this.props.message) {
+            return <div dangerouslySetInnerHTML={{__html: TextFormatting.formatText(this.props.message, this.props.options)}}/>;
+        }
+
+        return <div/>;
+    }
+}
+
+MessageWrapper.defaultProps = {
+    message: ''
+};
+MessageWrapper.propTypes = {
+    message: React.PropTypes.string,
+    options: React.PropTypes.object
+};
-- 
cgit v1.2.3-1-g7c22

