Files
Dorod-Sky/skyvern-frontend/src/store/useDebugStore.ts
2025-07-07 22:30:33 -04:00

11 lines
286 B
TypeScript

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;
}