1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-25 16:19:47 +02:00
planka/client/src/containers/CoreContainer.js

21 lines
599 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
2022-08-04 13:31:14 +02:00
import selectors from '../selectors';
import Core from '../components/Core';
const mapStateToProps = (state) => {
2022-12-26 21:10:50 +01:00
const isCoreInitializing = selectors.selectIsCoreInitializing(state);
const isSocketDisconnected = selectors.selectIsSocketDisconnected(state);
2022-08-04 13:31:14 +02:00
const currentModal = selectors.selectCurrentModal(state);
const currentProject = selectors.selectCurrentProject(state);
return {
2022-12-26 21:10:50 +01:00
isSocketDisconnected,
currentModal,
currentProject,
2022-12-26 21:10:50 +01:00
isInitializing: isCoreInitializing,
};
};
export default connect(mapStateToProps)(Core);