diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx
index 86919548..cecb4bc5 100644
--- a/web/components/bets-list.tsx
+++ b/web/components/bets-list.tsx
@@ -11,7 +11,7 @@ import { Spacer } from './layout/spacer'
import { Contract, path } from '../lib/firebase/contracts'
import { Row } from './layout/row'
import { calculateWinnings, currentValue } from '../lib/calculation/contract'
-import { UserLink } from '../pages/account'
+import { UserLink } from './user-page'
export function BetsList(props: { user: User }) {
const { user } = props
diff --git a/web/components/contracts-list.tsx b/web/components/contracts-list.tsx
index f10ed9d4..5a0a041e 100644
--- a/web/components/contracts-list.tsx
+++ b/web/components/contracts-list.tsx
@@ -10,7 +10,7 @@ import {
} from '../lib/firebase/contracts'
import { formatMoney } from '../lib/util/format'
import { User } from '../lib/firebase/users'
-import { UserLink } from '../pages/account'
+import { UserLink } from './user-page'
export function ContractDetails(props: { contract: Contract }) {
const { contract } = props
diff --git a/web/components/user-page.tsx b/web/components/user-page.tsx
new file mode 100644
index 00000000..e4e1749a
--- /dev/null
+++ b/web/components/user-page.tsx
@@ -0,0 +1,84 @@
+import { firebaseLogout, User } from '../lib/firebase/users'
+import { Header } from './header'
+import { ContractsList } from './contracts-list'
+import { Title } from './title'
+import { Row } from './layout/row'
+import { formatMoney } from '../lib/util/format'
+import { BetsList } from './bets-list'
+import { Spacer } from './layout/spacer'
+import Link from 'next/link'
+import clsx from 'clsx'
+
+export function UserLink(props: { displayName: string; className?: string }) {
+ const { displayName, className } = props
+ const username = displayName.replace(/\s+/g, '')
+
+ return (
+
+
+ @{username}
+
+
+ )
+}
+
+function UserCard(props: { user: User }) {
+ const { user } = props
+ return (
+ {user?.email} {formatMoney(user?.balance)}
+ )}
+
{user?.email}
-{formatMoney(user?.balance)}
-