cleanded up ConenctedDispatcher, added modeSwitch to Tracker
This commit is contained in:
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user