decord/source/modules/favorites/FavoritesGuildExperiment.tsx
2026-08-25 06:04:03 +00:00

30 lines
1.6 KiB
TypeScript

// Module ID: 9862
// Function ID: 9863
// Name: useFavoritesGuildConfig
// Dependencies: [1472, 2]
// Exports: getFavoritesGuildConfig, useFavoritesGuildConfig
// Module 9862 (useFavoritesGuildConfig)
import set from "set" /* 2 */;
import ApexExperiment from "ApexExperiment" /* 1472 */;
let obj = { 1: null, 2: { enabled: true } };
obj[2] = { enabled: true };
let closure_0 = ApexExperiment.createApexExperiment({ name: "2026-01-favorites-server", kind: "user", defaultConfig: { enabled: false }, variations: obj });
obj = { 1: null };
obj[1] = { enabled: true };
let closure_1 = ApexExperiment.createApexExperiment({ name: "2026-08-favorites-server", kind: "user", defaultConfig: { enabled: false }, variations: obj });
const result = set.fileFinishedImporting("modules/favorites/FavoritesGuildExperiment.tsx");
export const useFavoritesGuildConfig = function useFavoritesGuildConfig(location) {
const _location = location.location;
const config = closure_1.useConfig({ location: _location });
const tmp2 = config.enabled || closure_0.useConfig({ location: _location }).enabled;
return { enabled: config.enabled || closure_0.useConfig({ location: _location }).enabled, isFreemium: config.enabled };
};
export const getFavoritesGuildConfig = function getFavoritesGuildConfig(location) {
const _location = location.location;
const config = closure_1.getConfig({ location: _location });
const tmp2 = config.enabled || closure_0.getConfig({ location: _location }).enabled;
return { enabled: config.enabled || closure_0.getConfig({ location: _location }).enabled, isFreemium: config.enabled };
};