mirror of
https://github.com/responsively-org/responsively-app
synced 2024-11-12 23:47:06 +00:00
19 lines
474 B
JavaScript
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);
|