summaryrefslogtreecommitdiffstats
path: root/webapp/plugins/pluggable/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/plugins/pluggable/index.js')
-rw-r--r--webapp/plugins/pluggable/index.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/webapp/plugins/pluggable/index.js b/webapp/plugins/pluggable/index.js
new file mode 100644
index 000000000..d00f18a5d
--- /dev/null
+++ b/webapp/plugins/pluggable/index.js
@@ -0,0 +1,17 @@
+// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+import {connect} from 'react-redux';
+import {getTheme} from 'mattermost-redux/selectors/entities/preferences';
+
+import Pluggable from './pluggable.jsx';
+
+function mapStateToProps(state, ownProps) {
+ return {
+ ...ownProps,
+ components: state.plugins.components,
+ theme: getTheme(state)
+ };
+}
+
+export default connect(mapStateToProps)(Pluggable);