import React, { useRef } from "react"; import logo from '../public/images/thetiptop_logo.webp'; import Link from "next/link"; import { useRouter } from "next/router"; import { signOut, useSession } from "next-auth/react"; import style from '../styles/NavBar.module.css'; import Image from 'next/image'; const NavBar = () => { const navRef = useRef(); const router = useRouter(); const { data: session, status } = useSession(); console.log('role', session) const closeNav = () => { navRef.current.style.height = "0%"; } const openNav = () => { navRef.current.style.height = "100%"; } let visitor = ( ) return (<> {visitor} ) }; export default NavBar;