Files
discord-decomp/sources/modules/collectibles/hooks/useShouldShowPremiumProfileFrameEA.tsx
T
2026-07-27 16:20:00 +03:00

18 lines
1.5 KiB
TypeScript

/* Metro module 10151; source: modules/collectibles/hooks/useShouldShowPremiumProfileFrameEA.tsx; dependencies: [8499, 10055, 2] */
function _fun79115(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10337:6, offset: 0x01e458a1, size: 103 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/hooks/useShouldShowPremiumProfileFrameEA.tsx');
exports.default = useShouldShowPremiumProfileFrameEA;
}
function useShouldShowPremiumProfileFrameEA(a0) { // fn#79116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10337:201, offset: 0x01e45908, size: 115 bytes, params: 2, frame: 16
const value2 = (require(8499) /* metro dependency 8499: CollectiblesProfileFramesExperiment */).useIsProfileFramesEnabled(a0);
const defaultImport = importDefault(10055) /* metro dependency 10055: CollectiblesProfileFramesPurchaseExperiment */;
const useConfig = defaultImport.useConfig;
return value2 && Reflect.apply(useConfig, defaultImport,
[{location: a0}]).bucket === (require(10055) /* metro dependency 10055: CollectiblesProfileFramesPurchaseExperiment */).ProfileFramesPurchaseBucket.PAID_PREMIUM_SUBSCRIBERS_ONLY;
}