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

24 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 11678
// Function ID: 11679
2026-07-29 08:29:29 +00:00
// Name: experiment
2026-08-15 05:55:55 +00:00
// Dependencies: [4286, 4285, 2]
2026-07-20 16:05:17 +00:00
// Exports: useIsGameServerPricingEnabled
2026-08-15 05:55:55 +00:00
// Module 11678 (experiment)
2026-07-23 10:11:24 +00:00
import createExperiment from "createExperiment";
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-07-30 10:14:41 +00:00
const result = require("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-15 05:55:55 +00:00
let obj = require(4285) /* experiment */;
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;
};