UNPKG

@daimo/pay

Version:

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

14 lines (11 loc) 374 B
import React from 'react'; import { PayContext } from '../provider/PayContext.js'; /** Daimo Pay internal context. */ 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