cleanded up ConenctedDispatcher, added modeSwitch to Tracker

This commit is contained in:
PxlLoewe
2025-06-08 18:27:45 -07:00
parent 1d63368172
commit b3bf256324
5 changed files with 15 additions and 103 deletions

View File

@@ -1,16 +1,17 @@
"use client";
import { cn } from "_helpers/cn";
import { ArrowLeftRight, Plane, Radar, Workflow } from "lucide-react";
import { useSession } from "next-auth/react";
import Link from "next/link";
import { usePathname } from "next/navigation";
export default function ModeSwitchDropdown() {
export default function ModeSwitchDropdown({ className }: { className?: string }) {
const path = usePathname();
const session = useSession();
return (
<div className="dropdown z-[9999]">
<div className={cn("dropdown", className)}>
<div tabIndex={0} role="button" className="btn m-1">
<ArrowLeftRight size={22} /> {path.includes("pilot") && "Pilot"}
{path.includes("dispatch") && "Leitstelle"}