"use client"; import type React from "react"; import { usePathname } from "next/navigation"; import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, } from "@/components/ui/sidebar"; import { ModeToggle } from "@/components/mode-toggle"; import { Code2, FlaskConical, LayoutDashboard, LogOut, Settings, TestTube2, TrendingUp, } from "lucide-react"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import Link from "next/link"; export function DashboardShell({ children }: { children: React.ReactNode }) { const pathname = usePathname(); const routes = [ { title: "Developer", href: "/developer", icon: Code2, isActive: pathname === "/developer" || pathname === "/", }, { title: "Tester", href: "/tester", icon: TestTube2, isActive: pathname === "/tester", }, { title: "Lab Admin", href: "/lab-admin", icon: FlaskConical, isActive: pathname === "/lab-admin", }, { title: "Executive", href: "/executive", icon: TrendingUp, isActive: pathname === "/executive", }, ]; return (