import { useEffect, useState } from 'react' import clsx from 'clsx' import Link from 'next/link' import { Popover } from '@headlessui/react' import { useUser } from '../hooks/use-user' const navigation = [ { name: 'About', href: 'https://mantic.notion.site/About-Mantic-Markets-7c44bc161356474cad54cba2d2973fe2', }, ] const hoverClasses = 'hover:underline hover:decoration-indigo-400 hover:decoration-2' function SignInLink(props: { darkBackground?: boolean }) { const { darkBackground } = props const user = useUser() const themeClasses = (darkBackground ? 'text-white ' : '') + hoverClasses return ( <> {user ? ( <> Create a market Your account > ) : ( <>> )} > ) } export function Header(props: { darkBackground?: boolean }) { const { darkBackground } = props return ( Mantic Markets {navigation.map((item) => ( {item.name} ))} ) }