decord/source/modules/game_server/experiments/GameServerPricingExperiment.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

25 lines
1.2 KiB
TypeScript

// Module ID: 12602
// Function ID: 12603
// Name: GameServerPricingExperiment
// Dependencies: [4520, 4519, 2]
// Exports: useIsGameServerPricingEnabled
// Module 12602 (GameServerPricingExperiment)
import GameServerExperiment from "GameServerExperiment" /* 4519 */;
import createExperiment from "module_4520" /* 4520 */;
import size from "module_2" /* 2 */;
const obj = { kind: "guild", id: "2026-03_game_server_pricing", label: "Game Server Pricing", defaultConfig: { enabled: false }, treatments: null };
const items = [{ id: 1, label: "Enable Game Server Pricing", config: { enabled: true } }];
obj.treatments = items;
const experiment = createExperiment.createExperiment(obj);
const result = size.fileFinishedImporting("modules/game_server/experiments/GameServerPricingExperiment.tsx");
export const GameServerPricingExperiment = experiment;
export const useIsGameServerPricingEnabled = function useIsGameServerPricingEnabled(guildId, useGuildPowerupsChannelListPopout) {
let enabled = GameServerExperiment.useGameServerEnabled(guildId, useGuildPowerupsChannelListPopout);
if (enabled) {
enabled = experiment.useExperiment(obj2, { autoTrackExposure: false }).enabled;
}
return enabled;
};