decord/source/modules/themes/experiments/MobileVisualRefreshExperiment.tsx
2026-09-01 10:26:29 +00:00

26 lines
1.7 KiB
TypeScript

// Module ID: 15613
// Function ID: 15614
// Name: useIsMobileVisualRefreshExperimentEnabled
// Dependencies: [1469, 2]
// Exports: default, isMobileVisualRefreshEnabled, resolveRefreshToken, useMobileVisualRefreshConfig
// Module 15613 (useIsMobileVisualRefreshExperimentEnabled)
import getUnitIdDefault from "getUnitId" /* 1469 */;
const tmp2 = getUnitIdDefault({ 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 } } });
let closure_0 = tmp2;
const result = require("set").fileFinishedImporting("modules/themes/experiments/MobileVisualRefreshExperiment.tsx");
export default function useIsMobileVisualRefreshExperimentEnabled(location) {
return closure_0.useConfig({ location }).enabled;
};
export const MobileVisualRefreshExperiment = tmp2;
export const useMobileVisualRefreshConfig = function useMobileVisualRefreshConfig(location) {
return closure_0.useConfig({ location: location.location });
};
export const isMobileVisualRefreshEnabled = function isMobileVisualRefreshEnabled(location) {
return closure_0.getConfig({ location }).enabled;
};
export const resolveRefreshToken = function resolveRefreshToken(MESSAGES_HEADER_PADDING_BOTTOM) {
return MESSAGES_HEADER_PADDING_BOTTOM.resolve({ enabledExperiments: ["mobile-visual-refresh"] });
};