manifold/web/pages/index.tsx

17 lines
342 B
TypeScript
Raw Normal View History

2021-12-03 01:18:00 +00:00
import React from 'react'
import type { NextPage } from 'next'
2021-12-03 01:18:00 +00:00
import { Hero } from '../components/hero'
import { useUser } from '../hooks/use-user'
import Markets from './markets'
const Home: NextPage = () => {
const user = useUser()
if (user === undefined) return <></>
return user ? <Markets /> : <Hero />
}
export default Home