Files
Dorod-Sky/skyvern-frontend/src/store/useDebugStore.ts

11 lines
286 B
TypeScript
Raw Normal View History

2025-07-07 22:30:33 -04:00
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;
}