2022-02-02 09:44:33 -03:00
|
|
|
import { connect } from 'react-redux';
|
2022-02-02 09:49:02 -03:00
|
|
|
import SwipeableDrawer from './view';
|
2022-02-02 09:44:33 -03:00
|
|
|
import { selectTheme } from 'redux/selectors/settings';
|
2022-04-04 09:13:15 -03:00
|
|
|
import { selectAppDrawerOpen } from 'redux/selectors/app';
|
|
|
|
import { doToggleAppDrawer } from 'redux/actions/app';
|
2022-02-02 09:44:33 -03:00
|
|
|
|
|
|
|
const select = (state) => ({
|
2022-04-04 09:13:15 -03:00
|
|
|
open: selectAppDrawerOpen(state),
|
2022-02-02 09:44:33 -03:00
|
|
|
theme: selectTheme(state),
|
|
|
|
});
|
|
|
|
|
2022-04-04 09:13:15 -03:00
|
|
|
const perform = {
|
|
|
|
toggleDrawer: doToggleAppDrawer,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(select, perform)(SwipeableDrawer);
|