import { Avatar, Menu, Portal, Box } from "@chakra-ui/react"; import { NavLink } from "react-router-dom"; import useAuthStore from "../../store/authStore"; export default function UserAvatarMenu({ name, avatar }) { const { logout } = useAuthStore(); return ( {/* zIndex: overlay = 1300 */} Settings {/* Replaced console.log with the Zustand logout action */} Logout ); }