Abstract WebContainer into "JSRuntime" type

This commit is contained in:
Alex Gleason committed 2025-07-20 16:21:49 -05:00
1 parent 0986dd4e9d
commit 78398bcd7d
8 files changed
+316 -102

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import { createContext } from 'react';
import type { JSRuntime } from '@/lib/JSRuntime';
export interface JSRuntimeContextType {
runtime: JSRuntime;
}
export const JSRuntimeContext = createContext<JSRuntimeContextType | undefined>(undefined);