import { createContext, useContext } from 'react' import type { GatewayProviderProps, GatewayServices } from './interfaces.js' const GatewayContext = createContext(null) export function GatewayProvider({ children, value }: GatewayProviderProps) { return {children} } export function useGateway() { const value = useContext(GatewayContext) if (!value) { throw new Error('GatewayContext missing') } return value }