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

21 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 14401
// Function ID: 110162
2026-07-20 16:05:17 +00:00
// Name: apexExperiment
2026-07-23 10:11:24 +00:00
// Dependencies: [1428, 2]
2026-07-20 16:05:17 +00:00
// Exports: isEligibleForProfileUpdatesNotificationsToggle, useProfileUpdatesNotificationExperiment
2026-07-27 11:26:19 +00:00
// Module 14401 (apexExperiment)
2026-07-23 10:11:24 +00:00
import ApexExperiment from "ApexExperiment";
const obj = { kind: "user", name: "2026-01-profile-updates-notification", defaultConfig: { showSettingsToggle: false }, variations: { [0]: { showSettingsToggle: false }, [1]: { showSettingsToggle: true }, [2]: { showSettingsToggle: true } } };
const apexExperiment = ApexExperiment.createApexExperiment(obj);
const result = require("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;
};