diff --git a/app/components/Navbar/Navbar.jsx b/app/components/Navbar/Navbar.jsx index 418f6f9..83805b7 100644 --- a/app/components/Navbar/Navbar.jsx +++ b/app/components/Navbar/Navbar.jsx @@ -2,6 +2,7 @@ import Link from "next/link"; import { usePathname } from "next/navigation"; import { useUserStore } from "@/app/store/auth"; +import { Dropdown } from "flowbite-react"; export const Navbar = () => { const pathname = usePathname(); @@ -90,13 +91,60 @@ export const Navbar = () => { })} {userStore.isAuth ? ( -
+
-

{userStore.user.login}

+ + { + userStore.logout(); + }} + > + + Выйти + + {navLinks.map((link) => { + return ( + + + + + {link.title} + + + + ); + })} +
) : (