decord/beta/source/modules/safety_flows/SafetyFlowsTaskContext.tsx
github-actions 30c0bb2ec3 chore: update source for beta 347.10
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
2026-09-24 16:03:38 +00:00

33 lines
1,019 B
TypeScript

// Module ID: 18341
// Function ID: 18342
// Name: SafetyFlowsTaskContext
// Dependencies: [19, 558, 2]
// Module 18341 (SafetyFlowsTaskContext)
import noop from "module_19" /* 19 */;
let context = noop.createContext(null);
const ReactCompilerGating = fn(558);
const size = fn(2);
const result = size.fileFinishedImporting("modules/safety_flows/SafetyFlowsTaskContext.tsx");
export const SafetyFlowTaskContext = context;
export const useSafetyFlowTask = ReactCompilerGating.isReactCompilerEnabled() ? (() => {
context = noop.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;
}
}) : (() => {
context = noop.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;
}
});