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

60 lines
1.4 KiB
TypeScript

// Metro module 1348 (f1349).
import ApexExperiment from "../../experiments/apex/ApexExperiment";
let c1120_0 = ApexExperiment({
kind: "user",
name: "2026-02-mobile-visual-refresh",
defaultConfig: {
enabled: false,
chatInputFloating: false,
chatInputLegacySendButton: false
},
variations: {
0: {
enabled: false,
chatInputFloating: false,
chatInputLegacySendButton: false
},
1: {
enabled: true,
chatInputFloating: false,
chatInputLegacySendButton: false
},
2: {
enabled: true,
chatInputFloating: true,
chatInputLegacySendButton: false
},
3: {
enabled: true,
chatInputFloating: true,
chatInputLegacySendButton: false
},
4: {
enabled: true,
chatInputFloating: true,
chatInputLegacySendButton: true
}
}
});
export default function useIsMobileVisualRefreshExperimentEnabled(a0) {
return c1120_0.useConfig({
location: a0
}).enabled;
};
export { c1120_0 as MobileVisualRefreshExperiment };
export function useMobileVisualRefreshConfig(a0) {
return c1120_0.useConfig({
location: a0.location
});
}
export function isMobileVisualRefreshEnabled(a0) {
return c1120_0.getConfig({
location: a0
}).enabled;
}
export function resolveRefreshToken(a0, a1) {
return a0.resolve.call(a0, {
enabledExperiments: a1 ? ["mobile-visual-refresh"] : []
});
}