import { useCallback } from 'react' import { motion } from 'framer-motion' import { useActiveSection } from '@/hooks/useActiveSection' interface NavLink { id: string label: string } const navLinks: NavLink[] = [ { id: 'about', label: 'About' }, { id: 'skills', label: 'Skills' }, { id: 'experience', label: 'Experience' }, { id: 'education', label: 'Education' }, { id: 'projects', label: 'Projects' }, { id: 'contact', label: 'Contact' }, ] export function FloatingNav() { const activeSection = useActiveSection() const scrollToSection = useCallback((sectionId: string) => { const element = document.getElementById(sectionId) if (element) { element.scrollIntoView({ behavior: 'smooth' }) } }, []) return ( {navLinks.map((link) => { const isActive = activeSection === link.id return ( ) })} ) }