UNPKG

@renegade-fi/react

Version:
11 lines 386 B
"use client"; import { createContext, useContext } from "react"; export const WasmContext = createContext(undefined); export function useWasmInitialized() { const context = useContext(WasmContext); if (!context) { throw new Error("useWasmInitialized must be used within a <RenegadeProvider />"); } return context.isInitialized; } //# sourceMappingURL=wasm.js.map