@daimo/pay
Version:
Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.
18 lines (15 loc) • 774 B
JavaScript
import { jsx } from 'react/jsx-runtime';
import MultiCurrencySelectAmount from '../../Common/AmountInput/index.js';
import { PageContent } from '../../Common/Modal/styles.js';
import { ROUTES } from '../../../constants/routes.js';
import { usePayContext } from '../../../hooks/usePayContext.js';
const SelectAmount = () => {
const { paymentState } = usePayContext();
const { selectedTokenOption, setSelectedTokenOption } = paymentState;
if (selectedTokenOption == null) {
return jsx(PageContent, {});
}
return (jsx(MultiCurrencySelectAmount, { selectedTokenOption: selectedTokenOption, setSelectedTokenOption: setSelectedTokenOption, nextPage: ROUTES.PAY_WITH_TOKEN }));
};
export { SelectAmount as default };
//# sourceMappingURL=index.js.map