manifold/web/pages/bets.tsx

19 lines
527 B
TypeScript
Raw Normal View History

2021-12-17 23:07:08 +00:00
import { BetsList } from '../components/bets-list'
import { NavBar } from '../components/nav-bar'
2021-12-17 23:07:08 +00:00
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 (
2021-12-18 23:40:39 +00:00
<div className="max-w-4xl px-4 pb-8 mx-auto">
2021-12-17 23:07:08 +00:00
<SEO title="Your bets" description="Your bets" url="/bets" />
<NavBar />
2021-12-18 23:40:39 +00:00
<Title text="Your bets" />
{user && <BetsList user={user} />}
2021-12-17 23:07:08 +00:00
</div>
)
}