@soroban-react/events
Version:
See the official gitbook: https://soroban-react.gitbook.io/index/ ___
17 lines (16 loc) • 491 B
JavaScript
;
// import React, { useContext, Context } from 'react'
// import {
// SorobanEventsContext,
// SorobanEventsContextType,
// } from './SorobanEventsContext'
// export function useSorobanEvents() {
// const context = useContext(
// SorobanEventsContext as Context<SorobanEventsContextType | undefined>
// )
// if (!context)
// throw Error(
// 'useSorobanEvents can only be used within the SorobanEventsProvider component'
// )
// return context
// }