decord/source/modules/safety_flows/SafetyFlowsTaskContext.tsx

23 lines
730 B
TypeScript
Raw Normal View History

2026-07-21 22:01:30 +00:00
// Module ID: 16437
// Function ID: 126986
2026-07-20 16:05:17 +00:00
// Name: context
// Dependencies: []
// Exports: useSafetyFlowTask
2026-07-21 22:01:30 +00:00
// Module 16437 (context)
2026-07-20 16:05:17 +00:00
const importAllResult = importAll(dependencyMap[0]);
const context = importAllResult.createContext(null);
const result = arg1(dependencyMap[1]).fileFinishedImporting("modules/safety_flows/SafetyFlowsTaskContext.tsx");
export const SafetyFlowTaskContext = context;
export const useSafetyFlowTask = function useSafetyFlowTask() {
const context = importAllResult.useContext(context);
if (null == context) {
const _Error = Error;
const error = new Error("useSafetyFlowTask must be used within a SafetyFlowTaskContext Provider");
throw error;
} else {
return context;
}
};