"use client"; import { useEffect, useState } from "react"; import Image from "next/image"; import { Menu, Search, Facebook, Instagram, Youtube, Twitter, X, } from "lucide-react"; import { Button } from "../ui/button"; import Link from "next/link"; import { cn } from "@/lib/utils"; import { usePathname } from "next/navigation"; const navItems = [ { label: "BERANDA", href: "/", active: true }, { label: "BERITA TERKINI", href: "/category/latest-news" }, { label: "BERITA POPULER", href: "/category/popular-news" }, { label: "DAMAI INDONESIAKU", href: "/category/peace-indonesia" }, { label: "JAGA NEGERI", href: "/category/protect" }, { label: "BERITA OPINI", href: "/category/opinion-news" }, ]; export default function Navbar() { const pathname = usePathname(); const [isMobileMenuOpen, setMobileMenuOpen] = useState(false); const handleMenuClick = () => { if (typeof window !== "undefined" && window.innerWidth < 768) { setMobileMenuOpen(true); } }; return ( ); }