decord/alpha/source/modules/design/DesignSystemsNotificationComponentsExperiment.tsx

25 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 15175
// Function ID: 15176
// Name: DesignSystemsNotificationComponentsExperiment
// Dependencies: [1435, 2]
// Exports: getDesignSystemsNotificationComponents, useDesignSystemsNotificationComponents
// Module 15175 (DesignSystemsNotificationComponentsExperiment)
import ApexExperiment from "ApexExperiment" /* 1435 */;
import size from "module_2" /* 2 */;
const obj = { name: "2026-09-design-systems-notification-components", kind: "user", defaultConfig: { enabled: false }, variations: null };
const obj2 = { 1: null };
obj2[1] = { enabled: true };
obj.variations = obj2;
const apexExperiment = ApexExperiment.createApexExperiment(obj);
const result = size.fileFinishedImporting("modules/design/DesignSystemsNotificationComponentsExperiment.tsx");
export default apexExperiment;
export const useDesignSystemsNotificationComponents = function useDesignSystemsNotificationComponents(ToastDurationSettingNative) {
return apexExperiment.useConfig({ location: ToastDurationSettingNative }).enabled;
};
export const getDesignSystemsNotificationComponents = function getDesignSystemsNotificationComponents(location) {
return apexExperiment.getConfig({ location }).enabled;
};