import { signIn, signOut, useSession } from "next-auth/react"; import Image from "next/image"; import Link from "next/link"; import React, { useState } from "react"; export default function HamburgerMenu() { const { data: session } = useSession(); const [isVisible, setIsVisible] = useState(false); const [fade, setFade] = useState(false); const handleShowClick = () => { setIsVisible(true); setFade(true); }; const handleHideClick = () => { setIsVisible(false); setFade(false); }; return ( {/* Mobile Hamburger */} {!isVisible && ( )}
{isVisible && (
{session ? ( ) : ( )}
)}
); }