aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/main/CurrentPositionsMap.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/map/main/CurrentPositionsMap.js')
-rw-r--r--modern/src/map/main/CurrentPositionsMap.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/modern/src/map/main/CurrentPositionsMap.js b/modern/src/map/main/CurrentPositionsMap.js
new file mode 100644
index 00000000..80795497
--- /dev/null
+++ b/modern/src/map/main/CurrentPositionsMap.js
@@ -0,0 +1,11 @@
+import React, { } from 'react';
+import { useSelector } from 'react-redux';
+
+import PositionsMap from '../PositionsMap';
+
+const CurrentPositionsMap = () => {
+ const positions = useSelector((state) => state.positions.items);
+ return (<PositionsMap positions={Object.values(positions)} />);
+};
+
+export default CurrentPositionsMap;