27 lines
1.9 KiB
TypeScript
27 lines
1.9 KiB
TypeScript
// Module ID: 4307
|
|
// Function ID: 4308
|
|
// Name: experiment
|
|
// Dependencies: [4291, 2]
|
|
// Exports: getFileUpload250MbPowerupEnabled, getFileUpload250MbPowerupRollbackEnabled, useFileUpload250MbPowerupEnabled, useFileUpload250MbPowerupRollbackEnabled
|
|
|
|
// Module 4307 (experiment)
|
|
import set from "set" /* 2 */;
|
|
import createExperiment from "createExperiment" /* 4291 */;
|
|
|
|
const items = [{ id: 1, label: "Enable File Upload 250MB Powerup", config: { enabled: true, rollbackEnabled: false } }, { id: 2, label: "Rollback UI for File Upload 250MB Powerup", config: { enabled: true, rollbackEnabled: true } }];
|
|
const experiment = createExperiment.createExperiment({ kind: "guild", id: "2026-03_file_upload_250_mb_powerup", label: "File Upload 250MB Powerup", defaultConfig: { enabled: false, rollbackEnabled: false }, treatments: items });
|
|
const result = set.fileFinishedImporting("modules/premium/powerups/experiments/FileUpload250MbPowerupExperiment.tsx");
|
|
|
|
export const FileUpload250MbPowerupExperiment = experiment;
|
|
export const getFileUpload250MbPowerupEnabled = function getFileUpload250MbPowerupEnabled(guildId, GuildPowerupsConstants) {
|
|
return experiment.getCurrentConfig({ guildId, location: GuildPowerupsConstants }, { autoTrackExposure: false }).enabled;
|
|
};
|
|
export const useFileUpload250MbPowerupEnabled = function useFileUpload250MbPowerupEnabled(guildId, location) {
|
|
return experiment.useExperiment({ guildId, location }, { autoTrackExposure: false }).enabled;
|
|
};
|
|
export const useFileUpload250MbPowerupRollbackEnabled = function useFileUpload250MbPowerupRollbackEnabled(guildId, location) {
|
|
return experiment.useExperiment({ guildId, location }, { autoTrackExposure: false }).rollbackEnabled;
|
|
};
|
|
export const getFileUpload250MbPowerupRollbackEnabled = function getFileUpload250MbPowerupRollbackEnabled(guildId, location) {
|
|
return experiment.getCurrentConfig({ guildId, location }, { autoTrackExposure: false }).rollbackEnabled;
|
|
};
|