mirror of
https://github.com/wassname/talk.git
synced 2026-08-03 13:20:59 +08:00
Conflicts: client/coral-embed-stream/src/components/Comment.css client/coral-embed-stream/src/components/Comment.js client/coral-embed-stream/src/components/Stream.js client/coral-embed-stream/src/reducers/index.js client/coral-framework/helpers/plugins.js
12 lines
495 B
JavaScript
12 lines
495 B
JavaScript
import {connect} from 'react-redux';
|
|
import {bindActionCreators} from 'redux';
|
|
import ViewingOptions from '../components/ViewingOptions';
|
|
import {openViewingOptions, closeViewingOptions} from '../actions';
|
|
|
|
const mapStateToProps = ({['coral-plugin-viewing-options']: state}) => ({open: state.open});
|
|
|
|
const mapDispatchToProps = (dispatch) =>
|
|
bindActionCreators({openViewingOptions, closeViewingOptions}, dispatch);
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(ViewingOptions);
|