mirror of
https://github.com/plankanban/planka.git
synced 2025-07-24 07:39:44 +02:00
20 lines
599 B
JavaScript
Executable file
20 lines
599 B
JavaScript
Executable file
import { connect } from 'react-redux';
|
|
|
|
import selectors from '../selectors';
|
|
import Core from '../components/Core';
|
|
|
|
const mapStateToProps = (state) => {
|
|
const isCoreInitializing = selectors.selectIsCoreInitializing(state);
|
|
const isSocketDisconnected = selectors.selectIsSocketDisconnected(state);
|
|
const currentModal = selectors.selectCurrentModal(state);
|
|
const currentProject = selectors.selectCurrentProject(state);
|
|
|
|
return {
|
|
isSocketDisconnected,
|
|
currentModal,
|
|
currentProject,
|
|
isInitializing: isCoreInitializing,
|
|
};
|
|
};
|
|
|
|
export default connect(mapStateToProps)(Core);
|