30 lines
1.5 KiB
TypeScript
30 lines
1.5 KiB
TypeScript
// Module ID: 8189
|
|
// Function ID: 8190
|
|
// Name: apexExperiment
|
|
// Dependencies: [1467, 7608, 2]
|
|
// Exports: getMobileStickerPickerUpsellRestyleEnabled, getMobileStickerPickerUpsellRestyleEnabledForFeature, useMobileStickerPickerUpsellRestyleEnabled
|
|
|
|
// Module 8189 (apexExperiment)
|
|
import set from "set" /* 2 */;
|
|
import EntitlementFeatureNames from "EntitlementFeatureNames" /* 7608 */;
|
|
import ApexExperiment from "ApexExperiment" /* 1467 */;
|
|
|
|
const apexExperiment = ApexExperiment.createApexExperiment({ name: "2026-09-mobile-sticker-picker-upsell-restyle", kind: "user", defaultConfig: false, variations: { 0: false, 1: true } });
|
|
const result = set.fileFinishedImporting("modules/premium/experiments/MobileStickerPickerUpsellRestyleExperiment.tsx");
|
|
|
|
export const MobileStickerPickerUpsellRestyleExperiment = apexExperiment;
|
|
export const useMobileStickerPickerUpsellRestyleEnabled = function useMobileStickerPickerUpsellRestyleEnabled(location) {
|
|
return apexExperiment.useConfig({ location });
|
|
};
|
|
export const getMobileStickerPickerUpsellRestyleEnabled = function getMobileStickerPickerUpsellRestyleEnabled(location) {
|
|
return apexExperiment.getConfig({ location });
|
|
};
|
|
export const getMobileStickerPickerUpsellRestyleEnabledForFeature = function getMobileStickerPickerUpsellRestyleEnabledForFeature(featureName, arg1) {
|
|
let config = featureName === EntitlementFeatureNames.EntitlementFeatureNames.STICKERS_EVERYWHERE;
|
|
if (config) {
|
|
const obj = { location: null };
|
|
obj[0] = arg1;
|
|
config = apexExperiment.getConfig(obj);
|
|
}
|
|
return config;
|
|
};
|