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 CoreWrapper from '../components/CoreWrapper';
|
|
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => {
|
2022-08-04 13:31:14 +02:00
|
|
|
const isCoreInitializing = selectors.selectIsCoreInitializing(state);
|
2020-05-29 19:31:19 +05:00
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
isInitializing: isCoreInitializing,
|
2021-06-24 01:05:22 +05:00
|
|
|
isSocketDisconnected: state.socket.isDisconnected,
|
2020-05-29 19:31:19 +05:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default connect(mapStateToProps)(CoreWrapper);
|