mirror of
https://github.com/plankanban/planka.git
synced 2025-12-24 17:25:00 +03:00
23 lines
677 B
JavaScript
Executable File
23 lines
677 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);
|
|
const currentBoard = selectors.selectCurrentBoard(state);
|
|
|
|
return {
|
|
isSocketDisconnected,
|
|
currentModal,
|
|
currentProject,
|
|
currentBoard,
|
|
isInitializing: isCoreInitializing,
|
|
};
|
|
};
|
|
|
|
export default connect(mapStateToProps)(Core);
|