mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Remove WebContainers
This commit is contained in:
9 files changed
+4
-281
No files matched your search
@@ -1,14 +0,0 @@
|
||||
import { useContext } from 'react';
|
||||
import { JSRuntimeContext, type JSRuntimeContextType } from '@/contexts/JSRuntimeContext';
|
||||
|
||||
/**
|
||||
* Hook to access the JavaScript runtime
|
||||
* @returns JSRuntime context with runtime instance
|
||||
*/
|
||||
export function useJSRuntime(): JSRuntimeContextType {
|
||||
const context = useContext(JSRuntimeContext);
|
||||
if (context === undefined) {
|
||||
throw new Error('useJSRuntime must be used within a JSRuntimeProvider');
|
||||
}
|
||||
return context;
|
||||
}
|
||||
Reference in new issue
Block a user