import { Contract, getContractsBySlugs, getTrendingContracts, } from 'web/lib/firebase/contracts' import { Page } from 'web/components/page' import { LandingPagePanel } from 'web/components/landing-page-panel' import { Col } from 'web/components/layout/col' import { ManifoldLogo } from 'web/components/nav/manifold-logo' import { redirectIfLoggedIn } from 'web/lib/firebase/server-auth' import { useSaveReferral } from 'web/hooks/use-save-referral' import { SEO } from 'web/components/SEO' export const getServerSideProps = redirectIfLoggedIn('/home', async (_) => { const hotContracts = await getTrendingContracts() return { props: { hotContracts } } }) export default function Home(props: { hotContracts: Contract[] }) { const { hotContracts } = props useSaveReferral() return (
{/*

View{' '} all markets

*/}
) }