@coin-voyage/paykit
Version:
Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.
10 lines • 326 B
JavaScript
import React, { createContext } from "react";
export const PayContext = createContext(null);
export default function usePayContext() {
const context = React.useContext(PayContext);
if (!context) {
throw Error("Pay Hook must be inside a Provider.");
}
return context;
}
//# sourceMappingURL=index.js.map