import { useSession, signIn, signOut } from "next-auth/react" import {Avatar, Button, Chip, IconButton, Menu, MenuItem, Tooltip, Typography} from "@mui/material"; import {useState} from "react"; export default function LogIn() { const { data: session } = useSession() const [anchorElUser, setAnchorElUser] = useState(null); if (session) { return (
{ setAnchorElUser(event.currentTarget); }} sx={{ p: 0, ml: 3 }}> { setAnchorElUser(null) }} > Signed in as {session.user.name}#{session.user.discord_profile.discriminator} signOut()}> Log Out
) } return (
) }