// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {getTheme} from 'app/selectors/preferences'; import Code from './code'; function mapStateToProps(state, ownProps) { return { theme: getTheme(state), ...ownProps }; } function mapDispatchToProps(dispatch) { return { actions: bindActionCreators({ }, dispatch) }; } export default connect(mapStateToProps, mapDispatchToProps)(Code);