import React from 'react' import type { NextPage } from 'next' import { Hero } from '../components/hero' import { useUser } from '../hooks/use-user' import Markets from './markets' import { useContracts } from '../hooks/use-contracts' import { SearchableGrid } from '../components/contracts-list' import { Title } from '../components/title' const Home: NextPage = () => { const user = useUser() if (user === undefined) return <> return user ? : } function LandingPage() { const contracts = useContracts() return (
<SearchableGrid contracts={contracts === 'loading' ? [] : contracts} /> </div> </div> ) } export default Home