decord/source/modules/premium/experiments/MobileStickerPickerUpsellRestyleExperiment.tsx

31 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 9326
// Function ID: 9327
2026-09-02 09:53:35 +00:00
// Name: apexExperiment
// Dependencies: [1433, 7853, 2]
2026-09-02 09:53:35 +00:00
// Exports: getMobileStickerPickerUpsellRestyleEnabled, getMobileStickerPickerUpsellRestyleEnabledForFeature, useMobileStickerPickerUpsellRestyleEnabled
// Module 9326 (apexExperiment)
2026-09-02 09:53:35 +00:00
import set from "set" /* 2 */;
import EntitlementFeatureNames from "EntitlementFeatureNames" /* 7853 */;
import ApexExperiment from "ApexExperiment" /* 1433 */;
2026-09-02 09:53:35 +00:00
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;
};