manifold/web/pages/index.tsx

16 lines
347 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 { useUser } from '../hooks/use-user'
import Markets from './markets'
import LandingPage from './landing-page'
const Home: NextPage = () => {
const user = useUser()
if (user === undefined) return <></>
return user ? <Markets /> : <LandingPage />
}
export default Home