diff --git a/apps/dispatch/app/(app)/dispatch/_components/navbar/Navbar.tsx b/apps/dispatch/app/(app)/dispatch/_components/navbar/Navbar.tsx index 472e71b7..4be4b3c4 100644 --- a/apps/dispatch/app/(app)/dispatch/_components/navbar/Navbar.tsx +++ b/apps/dispatch/app/(app)/dispatch/_components/navbar/Navbar.tsx @@ -3,10 +3,10 @@ import { Audio } from "../../../../_components/Audio/Audio"; import { ExitIcon, ExternalLinkIcon } from "@radix-ui/react-icons"; import Link from "next/link"; import { Settings } from "_components/navbar/Settings"; -import ModeSwitchDropdown from "_components/navbar/ModeSwitchDropdown"; import AdminPanel from "_components/navbar/AdminPanel"; import { getServerSession } from "api/auth/[...nextauth]/auth"; import { WarningAlert } from "_components/navbar/PageAlert"; +import { Radar } from "lucide-react"; export default async function Navbar() { const session = await getServerSession(); @@ -14,7 +14,7 @@ export default async function Navbar() { return (
- +

VAR Leitstelle V2

{session?.user.permissions.includes("ADMIN_KICK") && }
@@ -27,6 +27,11 @@ export default async function Navbar() {
+ + + - +
+

VAR Operations Center

+
@@ -20,6 +22,11 @@ export default function Navbar() {
+ + + -
- {path.includes("pilot") && "Pilot"} - {path.includes("dispatch") && "Leitstelle"} -
-
    - {session.data?.user.permissions?.includes("DISPO") && ( -
  • - - Leitstelle - -
  • - )} - {session.data?.user.permissions?.includes("PILOT") && ( -
  • - - Pilot - -
  • - )} -
  • - - Tracker - -
  • -
-
- ); -} diff --git a/apps/hub/app/_components/Nav.tsx b/apps/hub/app/_components/Nav.tsx index ac1c3259..1fcde5c8 100644 --- a/apps/hub/app/_components/Nav.tsx +++ b/apps/hub/app/_components/Nav.tsx @@ -12,6 +12,7 @@ import { WarningAlert } from "./ui/PageAlert"; import { getServerSession } from "api/auth/[...nextauth]/auth"; import { Error } from "./Error"; import Image from "next/image"; +import { Radar } from "lucide-react"; export const VerticalNav = async () => { const session = await getServerSession(); @@ -106,41 +107,64 @@ export const VerticalNav = async () => { ); }; -export const HorizontalNav = () => ( -
-
- - VAR Logo -

Virtual Air Rescue - HUB

- - +export const HorizontalNav = async () => { + const session = await getServerSession(); + if (!session?.user) return ; + + return ( +
+
+ + VAR Logo +

Virtual Air Rescue - HUB

+ + +
+
-
- -
-
-); + ); +};