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

26 lines
782 B
TypeScript
Raw Normal View History

// Module ID: 15299
// Function ID: 15300
// Name: LabFeatureActions
// Dependencies: [7985, 573, 2]
2026-07-20 16:05:17 +00:00
// Exports: toggleLabFeature
// Module 15299 (LabFeatureActions)
import DispatcherDefault from "Dispatcher" /* 573 */;
import LabFeatureStore from "LabFeatureStore" /* 7985 */;
2026-07-23 10:11:24 +00:00
2026-07-20 16:05:17 +00:00
let closure_3 = {};
const size = fn(2);
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
}
DispatcherDefault.dispatch({ type: "LAB_FEATURE_TOGGLE", labFeature: ICYMI_LAB_FEATURE, enabled });
2026-07-20 16:05:17 +00:00
};