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

16 lines
910 B
TypeScript

/* Metro module 10459; source: modules/premium/gifting/hooks/useGiftingPromotionDefaultSelection.tsx; dependencies: [2] */
function _fun80956(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10645:6, offset: 0x01e9168c, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/hooks/useGiftingPromotionDefaultSelection.tsx');
exports.useGiftingPromotionDefaultSelectionV2 = function(a0, a1) {
var value = a1;
if (a0 != null) {
if (a0.length !== 0) {
return value == null ? a0[0] : a0.includes(value) ? value : a0[0];
}
}
};
}