2020-05-29 19:31:19 +05:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
2022-08-04 13:31:14 +02:00
|
|
|
import selectors from '../selectors';
|
2020-05-29 19:31:19 +05:00
|
|
|
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);
|
2020-05-29 19:31:19 +05:00
|
|
|
|
|
|
|
return {
|
2022-12-26 21:10:50 +01:00
|
|
|
isSocketDisconnected,
|
2020-05-29 19:31:19 +05:00
|
|
|
currentModal,
|
|
|
|
currentProject,
|
2022-12-26 21:10:50 +01:00
|
|
|
isInitializing: isCoreInitializing,
|
2020-05-29 19:31:19 +05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(mapStateToProps)(Core);
|