decord/source/modules/favorites/FavoritesGuildExperiment.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

30 lines
1.6 KiB
TypeScript

// Module ID: 10231
// Function ID: 10232
// Name: useFavoritesGuildConfig
// Dependencies: [1433, 2]
// Exports: getFavoritesGuildConfig, useFavoritesGuildConfig
// Module 10231 (useFavoritesGuildConfig)
import set from "set" /* 2 */;
import ApexExperiment from "ApexExperiment" /* 1433 */;
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 };
};