aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
diff options
context:
space:
mode:
authorDesmond Kyeremeh <elDekyfin@gmail.com>2021-07-12 03:12:10 +0000
committerDesmond Kyeremeh <elDekyfin@gmail.com>2021-07-12 03:12:10 +0000
commita7e1b5f5fd772d37f9777fec097f28411f13562f (patch)
tree068bd0e5968eee9f065145f8abd53395dd113d1e /modern/src/common
parentaba0f502a1a5e9a9467a06e1417ebb72c1e2ced2 (diff)
downloadtrackermap-web-a7e1b5f5fd772d37f9777fec097f28411f13562f.tar.gz
trackermap-web-a7e1b5f5fd772d37f9777fec097f28411f13562f.tar.bz2
trackermap-web-a7e1b5f5fd772d37f9777fec097f28411f13562f.zip
moved selectors to common
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/selectors.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/modern/src/common/selectors.js b/modern/src/common/selectors.js
new file mode 100644
index 00000000..44a0c547
--- /dev/null
+++ b/modern/src/common/selectors.js
@@ -0,0 +1,3 @@
+export const getIsAdmin = (state) => state.session.user?.administrator;
+
+export const getUserId = (state) => state.session.user?.id;