@donverduyn/react-runtime
Version:
effect-ts react integration
11 lines (10 loc) • 450 B
TypeScript
import * as React from 'react';
import type { ScopeId } from '@/types';
export type SystemContext = {
scopeId: ScopeId;
mode: 'live' | 'dry';
dryRunId: ScopeId | null;
};
export declare const SystemContext: React.Context<SystemContext | null>;
export declare const useSystemContext: () => SystemContext | null;
export declare const createSystemContext: (scopeId: ScopeId, dryRunId: ScopeId | null, mode: "live" | "dry") => SystemContext;