decord/source/modules/game_server/experiments/GameServerPricingExperiment.tsx
2026-08-27 16:17:25 +00:00

25 lines
1.2 KiB
TypeScript

// Module ID: 11988
// Function ID: 11989
// Name: experiment
// Dependencies: [4356, 4355, 2]
// Exports: useIsGameServerPricingEnabled
// Module 11988 (experiment)
import set from "set" /* 2 */;
import experiment2 from "experiment" /* 4355 */;
import createExperiment from "createExperiment" /* 4356 */;
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 });
const result = set.fileFinishedImporting("modules/game_server/experiments/GameServerPricingExperiment.tsx");
export const GameServerPricingExperiment = experiment;
export const useIsGameServerPricingEnabled = function useIsGameServerPricingEnabled(guildId, useGuildPowerupsChannelListPopout) {
let obj = experiment2;
let enabled = obj.useGameServerEnabled(guildId, useGuildPowerupsChannelListPopout);
obj = { guildId, location: useGuildPowerupsChannelListPopout };
if (enabled) {
enabled = experiment.useExperiment(obj, { autoTrackExposure: false }).enabled;
}
return enabled;
};