UNPKG

@macalinao/react-quarry

Version:

React hooks for Quarry

10 lines 327 B
import { createContext, useContext } from "react"; export const PoolInfoContext = createContext(null); export const usePoolInfo = () => { const context = useContext(PoolInfoContext); if (!context) { throw new Error("PoolInfoContext not found"); } return context; }; //# sourceMappingURL=pool-info.js.map