From 6d9f1cd56177a8b6b429bd0fef08e631936c39f0 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Sun, 25 Feb 2024 11:52:59 -0500 Subject: [PATCH] Add events team link to nav --- components/Navigation.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/components/Navigation.tsx b/components/Navigation.tsx index adaa5af..cd1e16e 100644 --- a/components/Navigation.tsx +++ b/components/Navigation.tsx @@ -67,6 +67,14 @@ export default function (props: { ); } + function isET(): boolean { + const { permissions } = props; + + if (typeof permissions === "undefined") return false; + + return Boolean([1 << 3, 1 << 4, 1 << 12].find((int) => permissions & int)); + } + return ( <> @@ -109,6 +117,13 @@ export default function (props: { Community + + Events Team + Our Team Support Community + + Events Team + Moderation