@daimo/pay
Version:
Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.
16 lines (13 loc) • 400 B
JavaScript
import { useContext } from 'react';
import { PayContext } from '../provider/PayContext.js';
function useDaimoPayUI() {
const context = useContext(PayContext);
if (!context) {
throw new Error("useDaimoPayUI must be used within a DaimoPayUIProvider");
}
return {
resetPayment: context.paymentState.resetOrder
};
}
export { useDaimoPayUI };
//# sourceMappingURL=useDaimoPayUI.js.map