UNPKG

@daimo/pay

Version:

Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.

25 lines (22 loc) 779 B
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 /* @__PURE__ */ jsx(PageContent, {}); } return /* @__PURE__ */ jsx( MultiCurrencySelectAmount, { selectedTokenOption, setSelectedTokenOption, nextPage: ROUTES.PAY_WITH_TOKEN } ); }; export { SelectAmount as default }; //# sourceMappingURL=index.js.map