'use client'; import React, { useState, useEffect, useRef } from 'react'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { Menu, X, Smartphone, Layers, ArrowUpRight } from 'lucide-react'; import { SiteConfig, resolveLocalised } from '@/types'; import { BrandLogo } from './BrandLogo'; interface NavbarProps { config: SiteConfig; currentLocale: string; } export function Navbar({ config, currentLocale }: NavbarProps) { const [isScrolled, setIsScrolled] = useState(false); const [mobileMenuOpen, setMobileMenuOpen] = useState(false); const [mousePos, setMousePos] = useState({ x: 50, y: 50, active: false }); const pathname = usePathname(); const navRef = useRef(null); useEffect(() => { const handleScroll = () => { setIsScrolled(window.scrollY > 20); }; window.addEventListener('scroll', handleScroll, { passive: true }); return () => window.removeEventListener('scroll', handleScroll); }, []); const handleMouseMove = (e: React.MouseEvent) => { const rect = e.currentTarget.getBoundingClientRect(); const x = ((e.clientX - rect.left) / rect.width) * 100; const y = ((e.clientY - rect.top) / rect.height) * 100; setMousePos({ x, y, active: true }); }; const handleMouseLeave = () => { setMousePos((prev) => ({ ...prev, active: false })); }; return (
{/* Optical Glass Caustic Reflection Sheen */}
); }