import { Popover } from '@headlessui/react' import Link from 'next/link' import { useEffect, useState } from 'react' import { firebaseLogin, listenForLogin, User } from '../lib/firebase/users' const navigation = [ { name: 'About', href: 'https://mantic.notion.site/About-Mantic-Markets-09bdde9044614e62a27477b4b1bf77ea', }, { name: 'Simulator', href: '/simulator' }, ] function SignInLink() { const [user, setUser] = useState(null) useEffect(() => listenForLogin(setUser), []) return ( <> {user && user.id ? ( {user.name} ) : ( )} ) } export function Header() { return (
) }