"use client"; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "@/components/ui/accordion"; import { Button, buttonVariants } from "@/components/ui/button"; import { Sheet, SheetClose, SheetContent, SheetTrigger, } from "@/components/ui/sheet"; import { NAV_LINKS, cn } from "@/utils"; import { useAuth } from "@clerk/nextjs"; import { LucideIcon, Menu, X } from "lucide-react"; import Link from "next/link"; import React, { useState } from "react"; const MobileNavbar = () => { const { isSignedIn, signOut } = useAuth(); const [isOpen, setIsOpen] = useState(false); const handleClose = () => { setIsOpen(false); }; return (
{isSignedIn ? ( Dashboard ) : ( <> Sign In Sign Up )}
    {NAV_LINKS.map((link) => ( {link.menu ? ( <> {link.title}
      {link.menu.map((menuItem) => ( {menuItem.tagline} ))}
    ) : ( {link.title} )}
    ))}
); }; const ListItem = React.forwardRef< React.ElementRef<"a">, React.ComponentPropsWithoutRef<"a"> & { title: string; icon: LucideIcon } >(({ className, title, href, icon: Icon, children, ...props }, ref) => { return (
  • {title}

    {children}

  • ); }); ListItem.displayName = "ListItem"; export default MobileNavbar;