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