responsively-app/desktop-app/app/containers/DrawerContainer/index.js
2020-05-28 18:04:13 +05:30

19 lines
474 B
JavaScript

// @flow
import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import Drawer from '../../components/Drawer';
import * as BrowserActions from '../../actions/browser';
function mapStateToProps(state) {
return {
drawer: state.browser.drawer,
};
}
function mapDispatchToProps(dispatch) {
return bindActionCreators(BrowserActions, dispatch);
}
export default connect(mapStateToProps, mapDispatchToProps)(Drawer);