"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { signOut } from "next-auth/react" interface SidebarProps { role: string } export default function Sidebar({ role }: SidebarProps) { const pathname = usePathname() const adminLinks = [ { href: "/admin", label: "Dashboard", icon: "πŸ“Š" }, { href: "/admin/teams", label: "Teams", icon: "πŸ‘₯" }, { href: "/admin/workers", label: "Workers", icon: "πŸ‘·" }, { href: "/admin/managers", label: "Shift Managers", icon: "πŸ‘”" }, { href: "/admin/machines", label: "Machines", icon: "βš™οΈ" }, ] const managerLinks = [ { href: "/shift-manager", label: "Dashboard", icon: "πŸ“Š" }, { href: "/shift-manager/shifts", label: "Shifts", icon: "πŸ•" }, { href: "/shift-manager/create-shift", label: "Create Shift", icon: "βž•" }, ] const operatorLinks = [ { href: "/operator", label: "Active Shifts", icon: "πŸ”„" }, { href: "/operator/archive", label: "Shifts Archive", icon: "πŸ“" }, ] const links = role === "admin" ? adminLinks : role === "shift_manager" ? managerLinks : operatorLinks return ( ) }