UNPKG

@donverduyn/react-runtime

Version:
11 lines (10 loc) 450 B
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;