Files
discord-decomp/sources/modules/payments/hooks/useSubscriptionSelection.tsx
T
2026-07-28 01:06:53 +03:00

25 lines
1.7 KiB
TypeScript

/* Metro module 10110; source: modules/payments/hooks/useSubscriptionSelection.tsx; dependencies: [57, 31, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun78916(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10296:6, offset: 0x01e3bd6d, size: 125 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/payments/hooks/useSubscriptionSelection.tsx');
exports.default = useSubscriptionSelection;
function useSubscriptionSelection() { // fn#78917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10296:211, offset: 0x01e3bdea, size: 95 bytes, params: 1, frame: 18
let useState = ReactModule.useState;
const value2 = Reflect.apply(useState, ReactModule, [undefined]);
let value = Module00057(value2, 2);
const property = value[0];
const property2 = value[1];
useState = ReactModule.useState;
value = Module00057(Reflect.apply(useState, ReactModule, [undefined]), 2);
return {selectedSkuId: property, setSelectedSkuId: property2, selectedPlanId: value[0], setSelectedPlanId: value[1]};
}
}
global.__d(_fun78916, 10110, [57, 31, 2]) /* metro module 10110, dependencies: [57, 31, 2] */;