import clsx from 'clsx' import { useEffect, useState } from 'react' import { useUser } from '../hooks/use-user' import { checkoutURL } from '../lib/service/stripe' import { FundsSelector } from './yes-no-selector' export function AddFundsButton(props: { className?: string }) { const { className } = props const user = useUser() const [amountSelected, setAmountSelected] = useState<1000 | 2500 | 10000>( 2500 ) const location = useLocation() return ( <>