"use client"; import { useState, useEffect } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { Menu, X, Mail } from 'lucide-react'; import { SiGithub, SiLinkedin } from 'react-icons/si'; import Link from 'next/link'; const Header = () => { const [isOpen, setIsOpen] = useState(false); const [scrolled, setScrolled] = useState(false); const [mounted, setMounted] = useState(false); useEffect(() => { setMounted(true); }, []); useEffect(() => { const handleScroll = () => { setScrolled(window.scrollY > 50); }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); const navItems = [ { name: 'Home', href: '/' }, { name: 'Projects', href: '/projects' }, { name: 'About', href: '#about' }, { name: 'Contact', href: '#contact' }, ]; const socialLinks = [ { icon: SiGithub, href: 'https://github.com/Denshooter', label: 'GitHub' }, { icon: SiLinkedin, href: 'https://linkedin.com/in/dkonkol', label: 'LinkedIn' }, { icon: Mail, href: 'mailto:contact@dk0.dev', label: 'Email' }, ]; if (!mounted) { return null; } return ( <>