27 lines
839 B
TypeScript
27 lines
839 B
TypeScript
// Module ID: 15360
|
|
// Function ID: 15361
|
|
// Name: LabFeatureActions
|
|
// Dependencies: [8031, 584, 2]
|
|
// Exports: toggleLabFeature
|
|
|
|
// Module 15360 (LabFeatureActions)
|
|
import DispatcherDefault from "Dispatcher" /* 584 */;
|
|
import LabFeatureStore from "LabFeatureStore" /* 8031 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let closure_3 = {};
|
|
const result = size.fileFinishedImporting("modules/labs/LabFeatureActions.tsx");
|
|
|
|
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);
|
|
}
|
|
const obj = DispatcherDefault;
|
|
const obj2 = { type: "LAB_FEATURE_TOGGLE", labFeature: ICYMI_LAB_FEATURE, enabled };
|
|
obj.dispatch(obj2);
|
|
};
|