aboutsummaryrefslogtreecommitdiff
path: root/modern/src/selectors.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/selectors.js')
-rw-r--r--modern/src/selectors.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/modern/src/selectors.js b/modern/src/selectors.js
new file mode 100644
index 0000000..f0b08f5
--- /dev/null
+++ b/modern/src/selectors.js
@@ -0,0 +1,3 @@
+export const getIsAdmin = state => state.session.user?.administrator;
+
+export const getUserId = state => state.session.user?.id;