'use client'; import { motion } from 'framer-motion'; import { Menu, X } from 'lucide-react'; import { useState } from 'react'; export default function Navbar() { const [isOpen, setIsOpen] = useState(false); const navLinks = [ { name: 'Research', href: '#research' }, { name: 'Projects', href: '#projects' }, { name: 'About', href: '#about' }, { name: 'Contact', href: '#contact' }, ]; return ( A.I. {/* Desktop Nav */}
{navLinks.map((link) => ( {link.name} {link.name} ))} Built with anycoder
{/* Mobile Toggle */} {/* Mobile Menu */} {isOpen && ( {navLinks.map((link) => ( setIsOpen(false)} > {link.name} ))} Built with anycoder )}
); }