Files
discord-decomp/modules/vibegrations/experiments/VibegrationsGuildExperiment.tsx
T
2026-11-01 12:12:55 +02:00

36 lines
862 B
TypeScript

// Metro module 5684 (f5685).
import { EMPTY_STRING_SNOWFLAKE_ID } from "../../../Constants";
import { createApexExperiment } from "../../experiments/apex/index";
const apexExperiment = createApexExperiment({
name: "2026-07-vibegrations-guild",
kind: "guild",
defaultConfig: {
enabled: false
},
variations: {
0: {
enabled: false
},
1: {
enabled: true
}
}
});
export function useIsVibegrationsGuildEnabled(a0) {
let guildId = a0.guildId;
const location2 = a0.location;
if (guildId == null) {
guildId = EMPTY_STRING_SNOWFLAKE_ID;
}
return apexExperiment.useConfig({
guildId,
location: location2
}).enabled;
}
export function isVibegrationsGuildEnabled({ guildId, location: location2 }) {
return guildId != null && apexExperiment.getConfig({
guildId,
location: location2
}).enabled;
}