'use client'; import { useState, useEffect } from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { Menu, X, Phone, MessageCircle } from "lucide-react"; import { cn } from "@/lib/utils"; import { siteConfig } from "@/lib/data"; const NAV_LINKS = [ { name: "Anasayfa", href: "/" }, { name: "Hizmetler", href: "/hizmetler" }, { name: "Filomuz", href: "/filomuz" }, { name: "Hakkımızda", href: "/hakkimizda" }, { name: "İletişim", href: "/iletisim" }, ]; export function Navbar() { const [isScrolled, setIsScrolled] = useState(false); const [mobileMenuOpen, setMobileMenuOpen] = useState(false); const pathname = usePathname(); useEffect(() => { const handleScroll = () => { setIsScrolled(window.scrollY > 50); }; window.addEventListener("scroll", handleScroll); return () => window.removeEventListener("scroll", handleScroll); }, []); const handleWhatsApp = () => { const message = encodeURIComponent("Merhaba, vinç kiralama ve nakliyat hizmetleriniz hakkında bilgi almak istiyorum."); window.open(`https://wa.me/${siteConfig.contact.whatsapp}?text=${message}`, '_blank'); }; return ( ); }