|
|
|
|
|
|
|
|
import AdbIcon from '@mui/icons-material/Adb'; |
|
|
import AdbIcon from '@mui/icons-material/Adb'; |
|
|
import MenuIcon from '@mui/icons-material/Menu'; |
|
|
import MenuIcon from '@mui/icons-material/Menu'; |
|
|
import AppBar from '@mui/material/AppBar'; |
|
|
import AppBar from '@mui/material/AppBar'; |
|
|
import Avatar from '@mui/material/Avatar'; |
|
|
|
|
|
import Box from '@mui/material/Box'; |
|
|
import Box from '@mui/material/Box'; |
|
|
import Button from '@mui/material/Button'; |
|
|
import Button from '@mui/material/Button'; |
|
|
import Container from '@mui/material/Container'; |
|
|
import Container from '@mui/material/Container'; |
|
|
|
|
|
|
|
|
import Tooltip from '@mui/material/Tooltip'; |
|
|
import Tooltip from '@mui/material/Tooltip'; |
|
|
import Typography from '@mui/material/Typography'; |
|
|
import Typography from '@mui/material/Typography'; |
|
|
import { signOut, useSession } from 'next-auth/react'; |
|
|
import { signOut, useSession } from 'next-auth/react'; |
|
|
|
|
|
import Image from 'next/image'; |
|
|
import Link from 'next/link'; |
|
|
import Link from 'next/link'; |
|
|
import { useState } from 'react'; |
|
|
import { useState } from 'react'; |
|
|
import { LOGIN_PAGE, PROFILE_PAGE } from '../../../constants/pages'; |
|
|
import { LOGIN_PAGE, PROFILE_PAGE } from '../../../constants/pages'; |
|
|
|
|
|
|
|
|
signOut(); |
|
|
signOut(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
console.log(session); |
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<AppBar position="static"> |
|
|
<AppBar position="static"> |
|
|
<Container maxWidth="xl"> |
|
|
<Container maxWidth="xl"> |
|
|
|
|
|
|
|
|
<> |
|
|
<> |
|
|
<Tooltip title="Open settings"> |
|
|
<Tooltip title="Open settings"> |
|
|
<IconButton onClick={handleOpenUserMenu} sx={{ p: 0 }}> |
|
|
<IconButton onClick={handleOpenUserMenu} sx={{ p: 0 }}> |
|
|
<Avatar |
|
|
|
|
|
alt="Profile picture" |
|
|
|
|
|
|
|
|
<Image |
|
|
src="https://www.business2community.com/wp-content/uploads/2017/08/blank-profile-picture-973460_640.png" |
|
|
src="https://www.business2community.com/wp-content/uploads/2017/08/blank-profile-picture-973460_640.png" |
|
|
|
|
|
alt="profile picture" |
|
|
|
|
|
width={40} |
|
|
|
|
|
height={40} |
|
|
|
|
|
style={{ borderRadius: '50%' }} |
|
|
/> |
|
|
/> |
|
|
</IconButton> |
|
|
</IconButton> |
|
|
</Tooltip> |
|
|
</Tooltip> |