27 lines
839 B
TypeScript
27 lines
839 B
TypeScript
// Module ID: 15074
|
|
// Function ID: 15075
|
|
// Name: LabFeatureActions
|
|
// Dependencies: [7805, 585, 2]
|
|
// Exports: toggleLabFeature
|
|
|
|
// Module 15074 (LabFeatureActions)
|
|
import DispatcherDefault from "Dispatcher" /* 585 */;
|
|
import LabFeatureStore from "LabFeatureStore" /* 7805 */;
|
|
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);
|
|
};
|