summaryrefslogtreecommitdiff
path: root/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/app/sidebars/topology/rack/RackSidebarContainer.js')
-rw-r--r--src/containers/app/sidebars/topology/rack/RackSidebarContainer.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js b/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js
new file mode 100644
index 00000000..ba51ee4a
--- /dev/null
+++ b/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js
@@ -0,0 +1,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;