decord/alpha/source/modules/badges/BadgeDirectoryUpdatesExperiment.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

20 lines
1.1 KiB
TypeScript

// Module ID: 10855
// Function ID: 10856
// Name: BadgeDirectoryUpdatesExperiment
// Dependencies: [1435, 2]
// Exports: useIsBadgeDetailsSwipeEnabled, useIsBadgeDirectoryUpdatesEnabled
// Module 10855 (BadgeDirectoryUpdatesExperiment)
import ApexExperiment from "ApexExperiment" /* 1435 */;
import size from "module_2" /* 2 */;
let closure_0 = ApexExperiment.createApexExperiment({ name: "2026-10-badge-directory-updates", kind: "user", defaultConfig: { enabled: false, swipeBetweenBadges: false }, variations: { 0: { enabled: false, swipeBetweenBadges: false }, 1: { enabled: true, swipeBetweenBadges: false }, 2: { enabled: true, swipeBetweenBadges: true } } });
const result = size.fileFinishedImporting("modules/badges/BadgeDirectoryUpdatesExperiment.tsx");
export const useIsBadgeDirectoryUpdatesEnabled = function useIsBadgeDirectoryUpdatesEnabled(location) {
return closure_0.useConfig({ location: location.location }).enabled;
};
export const useIsBadgeDetailsSwipeEnabled = function useIsBadgeDetailsSwipeEnabled(location) {
const config = closure_0.useConfig({ location: location.location });
return config.enabled && config.swipeBetweenBadges;
};