aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/selectors.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/selectors.js')
-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 0000000..44a0c54
--- /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;