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