38 lines
951 B
TypeScript
38 lines
951 B
TypeScript
// Metro module 16154 (f16155).
|
|
import { CommonTriggerPoints } from "../experiments/ExperimentConstants";
|
|
import { createExperiment } from "../experiments/index";
|
|
const experiment = createExperiment({
|
|
kind: "guild",
|
|
id: "2025-12_voice_channel_hoisting",
|
|
label: "Voice Channel Hoisting",
|
|
commonTriggerPoint: CommonTriggerPoints.VOICE_CALL,
|
|
defaultConfig: {
|
|
enableWaveformIcon: false,
|
|
enableHighlight: false
|
|
},
|
|
treatments: [{
|
|
id: 1,
|
|
label: "Both waveform and highlight",
|
|
config: {
|
|
enableWaveformIcon: true,
|
|
enableHighlight: true
|
|
}
|
|
}, {
|
|
id: 2,
|
|
label: "Waveform icon only",
|
|
config: {
|
|
enableWaveformIcon: true,
|
|
enableHighlight: false
|
|
}
|
|
}]
|
|
});
|
|
export { experiment as VoiceChannelHoistingExperiment };
|
|
export function useVoiceChannelHoistingExperiment(a0, a1) {
|
|
return experiment.useExperiment({
|
|
guildId: a0,
|
|
location: a1
|
|
}, {
|
|
autoTrackExposure: false
|
|
});
|
|
}
|