28 lines
1.4 KiB
TypeScript
28 lines
1.4 KiB
TypeScript
// Module ID: 9165
|
|
// Function ID: 9166
|
|
// Name: apexExperiment
|
|
// Dependencies: [1467, 7607, 2]
|
|
// Exports: getMobileEmojiPickerUpsellRestyleEnabledForFeature, useMobileEmojiPickerUpsellRestyleEnabled
|
|
|
|
// Module 9165 (apexExperiment)
|
|
import set from "set" /* 2 */;
|
|
import EntitlementFeatureNames from "EntitlementFeatureNames" /* 7607 */;
|
|
import ApexExperiment from "ApexExperiment" /* 1467 */;
|
|
|
|
const apexExperiment = ApexExperiment.createApexExperiment({ name: "2026-08-mobile-emoji-picker-upsell-restyle", kind: "user", defaultConfig: false, variations: { 0: false, 1: true } });
|
|
const items = [EntitlementFeatureNames.EntitlementFeatureNames.EMOJIS_EVERYWHERE, EntitlementFeatureNames.EntitlementFeatureNames.ANIMATED_EMOJIS];
|
|
const result = set.fileFinishedImporting("modules/premium/experiments/MobileEmojiPickerUpsellRestyleExperiment.tsx");
|
|
|
|
export const MobileEmojiPickerUpsellRestyleExperiment = apexExperiment;
|
|
export const useMobileEmojiPickerUpsellRestyleEnabled = function useMobileEmojiPickerUpsellRestyleEnabled(location) {
|
|
return apexExperiment.useConfig({ location });
|
|
};
|
|
export const getMobileEmojiPickerUpsellRestyleEnabledForFeature = function getMobileEmojiPickerUpsellRestyleEnabledForFeature(featureName, arg1) {
|
|
let config = items.includes(featureName);
|
|
if (config) {
|
|
const obj = { location: null };
|
|
obj[0] = arg1;
|
|
config = apexExperiment.getConfig(obj);
|
|
}
|
|
return config;
|
|
};
|