manifold/web/pages/bets.tsx

19 lines
527 B
TypeScript

import { BetsList } from '../components/bets-list'
import { NavBar } from '../components/nav-bar'
import { SEO } from '../components/SEO'
import { Title } from '../components/title'
import { useUser } from '../hooks/use-user'
export default function BetsPage() {
const user = useUser()
return (
<div className="max-w-4xl px-4 pb-8 mx-auto">
<SEO title="Your bets" description="Your bets" url="/bets" />
<NavBar />
<Title text="Your bets" />
{user && <BetsList user={user} />}
</div>
)
}