summaryrefslogtreecommitdiff
path: root/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js
blob: ba51ee4a8cf230718af4de4211345acb651288a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import {connect} from "react-redux";
import RackSidebarComponent from "../../../../../components/app/sidebars/topology/rack/RackSidebarComponent";

const mapStateToProps = state => {
    return {
        rackId: state.objects.tile[state.interactionLevel.tileId].objectId,
        inSimulation: state.currentExperimentId !== -1,
    };
};

const RackSidebarContainer = connect(
    mapStateToProps
)(RackSidebarComponent);

export default RackSidebarContainer;