UNPKG

@daimo/pay

Version:

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

12 lines (9 loc) 325 B
import React from 'react'; import { PayContext } from '../provider/PayContext.js'; const usePayContext = () => { const context = React.useContext(PayContext); if (!context) throw Error("DaimoPay Hook must be inside a Provider."); return context; }; export { usePayContext }; //# sourceMappingURL=usePayContext.js.map