import { useState } from "react"; import { Link, useLocation } from "react-router-dom"; import { Leaf, Menu } from "lucide-react"; import { MobileNav } from "./mobile-nav"; export function Navbar() { const [mobileMenuOpen, setMobileMenuOpen] = useState(false); const location = useLocation(); // const isActive = (path: string) => location.pathname === path; const navLinkClassName = (active: boolean) => [ "inline-flex items-center rounded-full px-4 py-2 text-[16px] font-medium transition-colors", active ? "bg-[#48A111] text-white shadow-sm" : "text-white/85 hover:bg-white/10 hover:text-white", ].join(" "); return (
ZeaVis Edu
Smart AI for Corn Disease Detection
setMobileMenuOpen(false)} />
); }