decord/source/modules/favorites/FavoritesGuildExperiment.tsx

31 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10020
// Function ID: 10021
2026-07-25 08:10:48 +00:00
// Name: useFavoritesGuildConfig
2026-08-15 05:55:55 +00:00
// Dependencies: [1472, 2]
2026-07-23 10:11:24 +00:00
// Exports: getFavoritesGuildConfig, useFavoritesGuildConfig
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 10020 (useFavoritesGuildConfig)
import set from "set" /* 2 */;
import ApexExperiment from "ApexExperiment" /* 1472 */;
2026-07-23 10:11:24 +00:00
2026-08-12 06:57:52 +00:00
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 });
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/favorites/FavoritesGuildExperiment.tsx");
2026-07-20 16:05:17 +00:00
export const useFavoritesGuildConfig = function useFavoritesGuildConfig(location) {
2026-08-12 06:57:52 +00:00
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 };
2026-07-20 16:05:17 +00:00
};
2026-07-23 10:11:24 +00:00
export const getFavoritesGuildConfig = function getFavoritesGuildConfig(location) {
2026-08-12 06:57:52 +00:00
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 };
2026-07-23 10:11:24 +00:00
};