decord/beta/source/modules/safety_flows/SafetyFlowsTaskContext.tsx
github-actions 6fbb1b046c chore: update source for beta 347.8
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-22 14:21:44 +00:00

33 lines
1,019 B
TypeScript

// Module ID: 18331
// Function ID: 18332
// Name: SafetyFlowsTaskContext
// Dependencies: [19, 558, 2]
// Module 18331 (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;
}
});