12 lines
389 B
TypeScript
12 lines
389 B
TypeScript
// Metro module 16708 (f16709).
|
|
import { createContext, useContext } from "react";
|
|
const context = createContext(null);
|
|
export { context as SafetyFlowTaskContext };
|
|
export function useSafetyFlowTask() {
|
|
const context2 = useContext(context);
|
|
if (context2 == null) {
|
|
throw new Error("useSafetyFlowTask must be used within a SafetyFlowTaskContext Provider");
|
|
}
|
|
return context2;
|
|
}
|