"use client"; import { useState } from "react"; import Link from "next/link"; import { MenuIcon, XIcon } from "lucide-react"; import { Button } from "./ui/button"; import { login } from "@/lib/user/actions"; import Image from "next/image"; type NavLink = { id: string; href: string; label: string }; export function MobileNav({ links, isAuthenticated }: { links: NavLink[]; isAuthenticated: boolean }) { const [open, setOpen] = useState(false); return (