2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 4059
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 33838
|
2026-07-21 06:55:02 +00:00
|
|
|
// Name: items
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [4043, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: getFileUpload250MbPowerupEnabled, getFileUpload250MbPowerupRollbackEnabled, useFileUpload250MbPowerupEnabled, useFileUpload250MbPowerupRollbackEnabled
|
|
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 4059 (items)
|
2026-07-23 10:11:24 +00:00
|
|
|
import createExperiment from "createExperiment";
|
|
|
|
|
|
|
|
|
|
let obj = { kind: "guild", id: "2026-03_file_upload_250_mb_powerup", label: "File Upload 250MB Powerup", defaultConfig: { enabled: false, rollbackEnabled: false } };
|
|
|
|
|
obj = { id: 1, label: "Enable File Upload 250MB Powerup", config: { enabled: true, rollbackEnabled: false } };
|
|
|
|
|
const items = [obj, ];
|
|
|
|
|
const obj1 = { id: 2, label: "Rollback UI for File Upload 250MB Powerup", config: { enabled: true, rollbackEnabled: true } };
|
|
|
|
|
items[1] = obj1;
|
2026-07-21 06:55:02 +00:00
|
|
|
obj.treatments = items;
|
2026-07-23 10:11:24 +00:00
|
|
|
const experiment = createExperiment.createExperiment(obj);
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/premium/powerups/experiments/FileUpload250MbPowerupExperiment.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
};
|