import Image from 'next/image' import { firebaseLogout, User } from '../lib/firebase/users' import { formatMoney } from '../lib/util/format' import { Col } from './layout/col' import { MenuButton } from './menu' export function ProfileMenu(props: { user: User }) { const { user } = props return ( <> } /> } /> ) } function getNavigationOptions(user: User, options: { mobile: boolean }) { const { mobile } = options return [ { name: 'Home', href: '/', }, ...(mobile ? [ { name: 'All markets', href: '/markets', }, { name: 'Create a market', href: '/create', }, ] : []), { name: 'Your trades', href: '/trades', }, { name: 'Your markets', href: `/${user.username}`, }, // { // name: 'Add funds', // href: '/add-funds', // }, { name: 'Discord', href: 'https://discord.gg/eHQBNBqXuh', }, ...(mobile ? [{ name: 'About', href: '/about' }] : []), { name: 'About', href: '/about', }, { name: 'Sign out', href: '#', onClick: () => firebaseLogout(), }, ] } function ProfileSummary(props: { user: User }) { const { user } = props return (
{user.name}
{formatMoney(Math.floor(user.balance))}
) }