20 lines
1 KiB
TypeScript
20 lines
1 KiB
TypeScript
// Module ID: 5741
|
|
// Function ID: 5742
|
|
// Name: experiment
|
|
// Dependencies: [4167, 2]
|
|
// Exports: getGuildSpaceExperimentEnabled, useGuildSpaceExperimentEnabled
|
|
|
|
// Module 5741 (experiment)
|
|
import createExperiment from "createExperiment";
|
|
|
|
const items = [{ id: 1, label: "Enable Guild Space", config: { enabled: true } }];
|
|
const experiment = createExperiment.createExperiment({ kind: "guild", id: "2026-06_guild_spaces", label: "Guild Space", defaultConfig: { enabled: false }, treatments: items });
|
|
const result = require("set").fileFinishedImporting("modules/guild_space/GuildSpaceExperiment.tsx");
|
|
|
|
export const GuildSpaceExperiment = experiment;
|
|
export const getGuildSpaceExperimentEnabled = function getGuildSpaceExperimentEnabled(guildId, location) {
|
|
return experiment.getCurrentConfig({ guildId, location }, { autoTrackExposure: false }).enabled;
|
|
};
|
|
export const useGuildSpaceExperimentEnabled = function useGuildSpaceExperimentEnabled(id, location) {
|
|
return experiment.useExperiment({ guildId: id, location }, { autoTrackExposure: false }).enabled;
|
|
};
|