decord/beta/source/modules/safety_flows/SafetyFlowsTaskContext.tsx
2026-10-07 22:43:51 +00:00

38 lines
1.2 KiB
TypeScript

// Module ID: 18064
// Function ID: 18065
// Name: SafetyFlowsTaskContext
// Dependencies: [19, 558, 2]
// Module 18064 (SafetyFlowsTaskContext)
import react from "react" /* 19 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
let context = react.createContext(null);
const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function() {
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;
}
}) : (function() {
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;