import { manaToUSD } from 'common/util/format' import { useState } from 'react' import { useUser } from 'web/hooks/use-user' import { checkoutURL } from 'web/lib/service/stripe' import { Button } from './button' import { Modal } from './layout/modal' import { FundsSelector } from './yes-no-selector' export function AddFundsModal(props: { open: boolean setOpen(open: boolean): void }) { const { open, setOpen } = props const user = useUser() const [amountSelected, setAmountSelected] = useState<1000 | 2500 | 10000>( 2500 ) return (
Get Mana
Buy mana (M$) to trade in your favorite markets.
(Not redeemable for cash.)
Amount
Price USD
{manaToUSD(amountSelected)}
) }