blob: d00f18a5d74217c4a4df95239e4b068d206ee34f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
|