MVP Debugger UI (#2888)
This commit is contained in:
10
skyvern-frontend/src/store/useDebugStore.ts
Normal file
10
skyvern-frontend/src/store/useDebugStore.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { useContext } from "react";
|
||||
import { DebugStoreContext } from "./DebugStoreContext";
|
||||
|
||||
export function useDebugStore() {
|
||||
const ctx = useContext(DebugStoreContext);
|
||||
if (!ctx) {
|
||||
throw new Error("useDebugStore must be used within a DebugStoreProvider");
|
||||
}
|
||||
return ctx;
|
||||
}
|
||||
Reference in New Issue
Block a user