manifold/web/pages/bets.tsx

25 lines
598 B
TypeScript
Raw Normal View History

2021-12-17 23:07:08 +00:00
import { BetsList } from '../components/bets-list'
import { Header } from '../components/header'
import { SEO } from '../components/SEO'
import { Title } from '../components/title'
2021-12-18 10:37:26 +00:00
import { useUser } from '../hooks/use-user'
2021-12-17 23:07:08 +00:00
2021-12-18 10:37:26 +00:00
export default function BetsPage() {
const user = useUser()
2021-12-17 23:07:08 +00:00
return (
<div>
<SEO title="Your bets" description="Your bets" url="/bets" />
<Header />
<div className="max-w-4xl pt-8 pb-0 sm:pb-8 mx-auto">
<div>
<Title text="Your bets" />
2021-12-18 21:01:29 +00:00
{user && <BetsList user={user} />}
2021-12-17 23:07:08 +00:00
</div>
</div>
</div>
)
}