"use client"; import React from "react"; import { Input } from "./ui/input"; import Image from "next/image"; import { menuItems } from "@/constants"; import Link from "next/link"; import Login from "./Login"; import { Button } from "./ui/button"; import { usePathname } from 'next/navigation' import TopNav from "./TopNav"; export default function Navbar() { const pathname = usePathname() return (
log

ســــــــوت زن

سامانه افشار فساد شهرداری

{menuItems.map((item, index, array) => { if (array.length - 1 !== index){ return (
{item.name}
); }else{ return ( <> ); } })}
); }