'use client'; import { useRouter, usePathname } from 'next/navigation'; import { LogOut, Wheat, MapPin, FileText, Upload, LayoutDashboard } from 'lucide-react'; import { logout } from '@/lib/api'; export default function Navbar() { const router = useRouter(); const pathname = usePathname(); const handleLogout = () => { logout(); }; const isActive = (path: string) => pathname === path; return ( ); }