decord/source/modules/notifications/profile_updates/ProfileUpdatesNotificationExperiment.tsx

21 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14879
// Function ID: 14880
2026-07-20 16:05:17 +00:00
// Name: apexExperiment
2026-08-15 05:55:55 +00:00
// Dependencies: [1472, 2]
2026-07-20 16:05:17 +00:00
// Exports: isEligibleForProfileUpdatesNotificationsToggle, useProfileUpdatesNotificationExperiment
2026-08-24 06:08:38 +00:00
// Module 14879 (apexExperiment)
import set from "set" /* 2 */;
import ApexExperiment from "ApexExperiment" /* 1472 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
const apexExperiment = ApexExperiment.createApexExperiment({ kind: "user", name: "2026-01-profile-updates-notification", defaultConfig: { showSettingsToggle: false }, variations: { 0: { showSettingsToggle: false }, 1: { showSettingsToggle: true }, 2: { showSettingsToggle: true } } });
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/notifications/profile_updates/ProfileUpdatesNotificationExperiment.tsx");
2026-07-20 16:05:17 +00:00
export default apexExperiment;
export const useProfileUpdatesNotificationExperiment = function useProfileUpdatesNotificationExperiment(tabsV2Settings) {
return apexExperiment.useConfig({ location: tabsV2Settings });
};
export const isEligibleForProfileUpdatesNotificationsToggle = function isEligibleForProfileUpdatesNotificationsToggle(location) {
return apexExperiment.getConfig({ location }).showSettingsToggle;
};