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

30 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 9441
// Function ID: 9442
// Name: MobileStickerPickerUpsellRestyleExperiment
// Dependencies: [1434, 8099, 2]
2026-09-02 09:53:35 +00:00
// Exports: getMobileStickerPickerUpsellRestyleEnabled, getMobileStickerPickerUpsellRestyleEnabledForFeature, useMobileStickerPickerUpsellRestyleEnabled
// Module 9441 (MobileStickerPickerUpsellRestyleExperiment)
import EntitlementFeatureNames from "EntitlementFeatureNames" /* 8099 */;
import ApexExperiment from "ApexExperiment" /* 1434 */;
import size from "module_2" /* 2 */;
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 = size.fileFinishedImporting("modules/premium/experiments/MobileStickerPickerUpsellRestyleExperiment.tsx");
2026-09-02 09:53:35 +00:00
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, location) {
2026-09-02 09:53:35 +00:00
let config = featureName === EntitlementFeatureNames.EntitlementFeatureNames.STICKERS_EVERYWHERE;
if (config) {
const obj = { location };
2026-09-02 09:53:35 +00:00
config = apexExperiment.getConfig(obj);
}
return config;
};