"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { CheckSquare, CreditCard, UserCircle, LayoutDashboard } from "lucide-react"; import { cn } from "@/lib/utils"; import type { Role } from "@prisma/client"; const MANAGER_TABS = [ { href: "/dashboard", label: "Home", icon: LayoutDashboard }, { href: "/approvals", label: "Approvals", icon: CheckSquare }, { href: "/profile", label: "Profile", icon: UserCircle }, ]; const ACCOUNTS_TABS = [ { href: "/dashboard", label: "Home", icon: LayoutDashboard }, { href: "/payments", label: "Payments", icon: CreditCard }, { href: "/profile", label: "Profile", icon: UserCircle }, ]; function tabsForRole(role: Role) { if (role === "ACCOUNTS") return ACCOUNTS_TABS; return MANAGER_TABS; // MANAGER, SUPERUSER } export function MobileBottomNav({ role }: { role: Role }) { const pathname = usePathname(); const tabs = tabsForRole(role); return ( ); }