decord/source/modules/safety_flows/SafetyFlowsExperiment.tsx
2026-08-27 16:17:25 +00:00

20 lines
995 B
TypeScript

// Module ID: 17004
// Function ID: 17005
// Name: isEligibleForSafetyFlowsExperiment
// Dependencies: [1368, 2]
// Exports: isEligibleForSafetyFlowsExperiment, useIsEligibleForSafetyFlowsExperiment
// Module 17004 (isEligibleForSafetyFlowsExperiment)
import getUnitIdDefault from "getUnitId" /* 1368 */;
const tmp2 = getUnitIdDefault({ name: "2026-04-safety-flows", kind: "user", defaultConfig: { enabled: false }, variations: { 0: { enabled: false }, 1: { enabled: true } } });
let closure_0 = tmp2;
const result = require("set").fileFinishedImporting("modules/safety_flows/SafetyFlowsExperiment.tsx");
export default tmp2;
export const isEligibleForSafetyFlowsExperiment = function isEligibleForSafetyFlowsExperiment(location) {
return closure_0.getConfig({ location: location.location }).enabled;
};
export const useIsEligibleForSafetyFlowsExperiment = function useIsEligibleForSafetyFlowsExperiment(location) {
return closure_0.useConfig({ location: location.location }).enabled;
};