decord/alpha/source/modules/safety_flows/SafetyFlowsTaskContext.tsx

39 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 18694
// Function ID: 18695
// Name: SafetyFlowsTaskContext
2026-10-03 08:58:59 +00:00
// Dependencies: [19, 558, 2]
2026-07-20 16:05:17 +00:00
2026-10-13 12:43:34 +00:00
// Module 18694 (SafetyFlowsTaskContext)
2026-10-03 08:58:59 +00:00
import react from "react" /* 19 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
let context = react.createContext(null);
2026-10-08 09:57:35 +00:00
const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function useSafetyFlowTask() {
2026-10-03 08:58:59 +00:00
context = react.useContext(context);
2026-07-20 16:05:17 +00:00
if (null == context) {
const _Error = Error;
2026-10-03 08:58:59 +00:00
const self = this;
const self2 = this;
const error = new Error("useSafetyFlowTask must be used within a SafetyFlowTaskContext Provider");
2026-07-20 16:05:17 +00:00
throw error;
} else {
return context;
}
2026-10-08 09:57:35 +00:00
}) : (function useSafetyFlowTask() {
2026-10-03 08:58:59 +00:00
context = react.useContext(context);
if (null == context) {
const _Error = Error;
const self = this;
const self2 = this;
const error = new Error("useSafetyFlowTask must be used within a SafetyFlowTaskContext Provider");
throw error;
} else {
return context;
}
});
const result = size.fileFinishedImporting("modules/safety_flows/SafetyFlowsTaskContext.tsx");
export const SafetyFlowTaskContext = context;
export const useSafetyFlowTask = tmp3;