'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { useState } from 'react'; import { Menu } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { cn } from '@/lib/utils'; import { getVisibleNavItems, type AppRole } from './nav-items'; export function MobileSidebar({ role }: { role: AppRole }) { const [open, setOpen] = useState(false); const pathname = usePathname(); const items = getVisibleNavItems(role); return (
{open && (
setOpen(false)}>
event.stopPropagation()} >
setOpen(false)} > AJet360
)}
); }