just started rewritig the project, found a lot of fails

This commit is contained in:
Alibek committed 2024-02-03 20:03:03 +06:00
1 parent eeb9cc7ff8
commit 60b136effd
277 files changed
+1833 -5415

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
import { LINKS } from "@/shared/variables/links";
import "./NavMenu.scss";
import Link from "next/link";
import { usePathname } from "next/navigation";
import NavAuth from "../NavAuth/NavAuth";
const NavMenu = () => {
const auth = false;
const pathname = usePathname();
return (
<nav className="nav-menu">
{LINKS.map((link) => (
<Link
className={`nav-menu__link${
pathname === link.pathname ? "_active" : ""
}`}
href={link.pathname}
key={link.id}
>
{link.pagename}
</Link>
))}
<NavAuth responsible />
</nav>
);
};
export default NavMenu;