decord/alpha/source/modules/labs/LabFeatureActions.tsx

28 lines
839 B
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 16150
// Function ID: 16151
// Name: LabFeatureActions
2026-10-12 06:59:38 +00:00
// Dependencies: [8474, 584, 2]
2026-07-20 16:05:17 +00:00
// Exports: toggleLabFeature
2026-10-13 12:43:34 +00:00
// Module 16150 (LabFeatureActions)
2026-10-03 08:58:59 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
2026-10-12 06:59:38 +00:00
import LabFeatureStore from "LabFeatureStore" /* 8474 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-07-20 16:05:17 +00:00
let closure_3 = {};
const result = size.fileFinishedImporting("modules/labs/LabFeatureActions.tsx");
2026-07-20 16:05:17 +00:00
export const toggleLabFeature = function toggleLabFeature(ICYMI_LAB_FEATURE, arg1) {
let tmp = arg1;
if (arg1 === undefined) {
tmp = closure_3;
}
let enabled = tmp.enabled;
if (enabled === undefined) {
enabled = !LabFeatureStore.get(ICYMI_LAB_FEATURE);
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "LAB_FEATURE_TOGGLE", labFeature: ICYMI_LAB_FEATURE, enabled };
obj.dispatch(obj2);
2026-07-20 16:05:17 +00:00
};