import { useRouter } from 'next/router' import { useEffect, useState } from 'react' import { firebaseLogout, listenForLogin, User } from '../lib/firebase/users' import { Header } from '../components/header' export default function Account() { const [user, setUser] = useState(null) useEffect(() => listenForLogin(setUser), []) const router = useRouter() return (

{user?.name}

{user?.email}

${user?.balanceUsd} USD

{/* Lorem ipsum table. TODO: fill in user's bets and markets */}

{user?.username}'s Bets

Name Job company location Last Login Favorite Color
1 Cy Ganderton Quality Control Specialist Littel, Schaden and Vandervort Canada 12/16/2020 Blue
2 Hart Hagerty Desktop Support Technician Zemlak, Daniel and Leannon United States 12/5/2020 Purple
3 Brice Swyre Tax Accountant Carroll Group China 8/15/2020 Red
4 Marjy Ferencz Office Assistant I Rowe-Schoen Russia 3/25/2021 Crimson
5 Yancy Tear Community Outreach Specialist Wyman-Ledner Brazil 5/22/2020 Indigo
6 Irma Vasilik Editor Wiza, Bins and Emard Venezuela 12/8/2020 Purple
) }