decord/source/modules/notifications/friend_online/FriendOnlineNotificationExperiment.tsx

23 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14874
// Function ID: 14875
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: isEligibleForFriendOnlineNotifications, useFriendOnlineNotificationExperiment
2026-08-24 06:08:38 +00:00
// Module 14874 (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 obj = { 1: null, 2: { showSettingsToggle: true } };
obj[2] = { showSettingsToggle: true };
const apexExperiment = ApexExperiment.createApexExperiment({ kind: "user", name: "2026-03-friend-is-online-v3", defaultConfig: { showSettingsToggle: false }, variations: obj });
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/notifications/friend_online/FriendOnlineNotificationExperiment.tsx");
2026-07-20 16:05:17 +00:00
export default apexExperiment;
export const useFriendOnlineNotificationExperiment = function useFriendOnlineNotificationExperiment(tabsV2Settings) {
return apexExperiment.useConfig({ location: tabsV2Settings });
};
export const isEligibleForFriendOnlineNotifications = function isEligibleForFriendOnlineNotifications(location) {
return apexExperiment.getConfig({ location }).showSettingsToggle;
};