decord/source/modules/game_server/experiments/GameServerPricingExperiment.tsx

26 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11727
// Function ID: 11728
2026-07-29 08:29:29 +00:00
// Name: experiment
2026-08-24 06:08:38 +00:00
// Dependencies: [4290, 4289, 2]
2026-07-20 16:05:17 +00:00
// Exports: useIsGameServerPricingEnabled
2026-08-24 06:08:38 +00:00
// Module 11727 (experiment)
import set from "set" /* 2 */;
import experiment2 from "experiment" /* 4289 */;
import createExperiment from "createExperiment" /* 4290 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
const items = [{ id: 1, label: "Enable Game Server Pricing", config: { enabled: true } }];
const experiment = createExperiment.createExperiment({ kind: "guild", id: "2026-03_game_server_pricing", label: "Game Server Pricing", defaultConfig: { enabled: false }, treatments: items });
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/game_server/experiments/GameServerPricingExperiment.tsx");
2026-07-20 16:05:17 +00:00
export const GameServerPricingExperiment = experiment;
export const useIsGameServerPricingEnabled = function useIsGameServerPricingEnabled(guildId, useGuildPowerupsChannelListPopout) {
2026-08-24 06:08:38 +00:00
let obj = experiment2;
2026-07-20 16:05:17 +00:00
let enabled = obj.useGameServerEnabled(guildId, useGuildPowerupsChannelListPopout);
obj = { guildId, location: useGuildPowerupsChannelListPopout };
if (enabled) {
enabled = experiment.useExperiment(obj, { autoTrackExposure: false }).enabled;
}
return enabled;
};