mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Abstract WebContainer into "JSRuntime" type
This commit is contained in:
1 parent
0986dd4e9d
commit
78398bcd7d
8 files changed
+316
-102
No files matched your search
@@ -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);
|
||||
Reference in new issue
Block a user