decord/source/modules/game_server/experiments/GameServerPricingExperiment.tsx
2026-09-02 09:53:35 +00:00

25 lines
1.2 KiB
TypeScript

// Module ID: 12297
// Function ID: 12298
// Name: experiment
// Dependencies: [4389, 4388, 2]
// Exports: useIsGameServerPricingEnabled
// Module 12297 (experiment)
import set from "set" /* 2 */;
import experiment2 from "experiment" /* 4388 */;
import createExperiment from "createExperiment" /* 4389 */;
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;
};