decord/source/modules/guild_space/GuildSpaceExperiment.tsx

24 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 7277
// Function ID: 7278
// Name: GuildSpaceExperiment
// Dependencies: [4519, 2]
2026-07-23 10:11:24 +00:00
// Exports: getGuildSpaceExperimentEnabled, useGuildSpaceExperimentEnabled
// Module 7277 (GuildSpaceExperiment)
import createExperiment from "module_4519" /* 4519 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const obj = { kind: "guild", id: "2026-06_guild_spaces", label: "Guild Space", defaultConfig: { enabled: false }, treatments: null };
2026-07-29 08:29:29 +00:00
const items = [{ id: 1, label: "Enable Guild Space", config: { enabled: true } }];
obj.treatments = items;
const experiment = createExperiment.createExperiment(obj);
const result = size.fileFinishedImporting("modules/guild_space/GuildSpaceExperiment.tsx");
2026-07-23 10:11:24 +00:00
export const GuildSpaceExperiment = experiment;
export const getGuildSpaceExperimentEnabled = function getGuildSpaceExperimentEnabled(guildId, location) {
return experiment.getCurrentConfig({ guildId, location }, { autoTrackExposure: false }).enabled;
};
2026-08-26 06:04:24 +00:00
export const useGuildSpaceExperimentEnabled = function useGuildSpaceExperimentEnabled(guildId, location) {
return experiment.useExperiment({ guildId, location }, { autoTrackExposure: false }).enabled;
2026-07-23 10:11:24 +00:00
};