import { signOut, signIn, useSession } from 'next-auth/client' import Navbar from 'react-bootstrap/Navbar' import Nav from 'react-bootstrap/Nav' import Link from 'next/link' import styles from './header.module.css' import { useRouter } from 'next/router' import { Button, Container, NavDropdown } from 'react-bootstrap' import Price from './price' export default function Header () { const [session, loading] = useSession() const router = useRouter() const path = router.asPath.split('?')[0] const Corner = () => { if (loading) { return null } if (session) { return (
profile wallet
recent post jobs
logout
[0,0]
) } else { return path !== '/login' && } } return ( <> ) }