summaryrefslogtreecommitdiff
path: root/frontend/src/containers/app/map/TopologyContainer.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/containers/app/map/TopologyContainer.js')
-rw-r--r--frontend/src/containers/app/map/TopologyContainer.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/frontend/src/containers/app/map/TopologyContainer.js b/frontend/src/containers/app/map/TopologyContainer.js
new file mode 100644
index 00000000..37cc5a06
--- /dev/null
+++ b/frontend/src/containers/app/map/TopologyContainer.js
@@ -0,0 +1,17 @@
+import { connect } from 'react-redux'
+import TopologyGroup from '../../../components/app/map/groups/TopologyGroup'
+
+const mapStateToProps = state => {
+ if (state.currentTopologyId === -1) {
+ return {}
+ }
+
+ return {
+ topology: state.objects.topology[state.currentTopologyId],
+ interactionLevel: state.interactionLevel,
+ }
+}
+
+const TopologyContainer = connect(mapStateToProps)(TopologyGroup)
+
+export default TopologyContainer