Files
mostlymatter/webapp/plugins/pluggable/index.js
Joram Wilander 257edc9ea3 Experimental implementation for webapp plugins (#7185)
* Start of experimental implementation for webapp plugins

* Updates to webapp plugin architecture

* Update pluggable test

* Remove debug code
2017-08-29 09:54:02 -04:00

18 строки
476 B
JavaScript

// 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);