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

39 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 18690
// Function ID: 18691
// Name: SafetyFlowsTaskContext
2026-10-02 13:37:24 +00:00
// Dependencies: [19, 558, 2]
2026-10-12 16:32:48 +00:00
// Module 18690 (SafetyFlowsTaskContext)
2026-10-01 14:13:23 +00:00
import react from "react" /* 19 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
let context = react.createContext(null);
2026-10-12 16:32:48 +00:00
const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function useSafetyFlowTask() {
2026-10-02 13:37:24 +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;
}
2026-10-12 16:32:48 +00:00
}) : (function useSafetyFlowTask() {
2026-10-01 14:13:23 +00:00
context = react.useContext(context);
if (null == context) {
const _Error = Error;
2026-10-01 14:13:23 +00:00
const self = this;
const self2 = this;
const error = new Error("useSafetyFlowTask must be used within a SafetyFlowTaskContext Provider");
throw error;
} else {
return context;
}
2026-10-02 13:37:24 +00:00
});
const result = size.fileFinishedImporting("modules/safety_flows/SafetyFlowsTaskContext.tsx");
export const SafetyFlowTaskContext = context;
export const useSafetyFlowTask = tmp3;