29 lines
2.1 KiB
TypeScript
29 lines
2.1 KiB
TypeScript
/* Metro module 13222; source: modules/collectibles/nameplates/hooks/useFetchNameplate.tsx; dependencies: [8461, 1904, 1901, 2] */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as CollectiblesItemTypeModule from '../../../../external/discord_common/js/shared/shared-constants/CollectiblesItemType.tsx'; /* Metro dependency 1904 */
|
|
import * as UseFetchCollectiblesProductModule from '../../hooks/useFetchCollectiblesProduct.tsx'; /* Metro dependency 8461 */
|
|
|
|
function _fun100862(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#100862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13412:6, offset: 0x021fd610, size: 96 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/collectibles/nameplates/hooks/useFetchNameplate.tsx');
|
|
exports.useFetchNameplate = useFetchNameplate;
|
|
function useFetchNameplate(a0) { // fn#100863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13412:205, offset: 0x021fd670, size: 188 bytes, params: 2, frame: 17
|
|
const value2 = undefined;
|
|
const {product,
|
|
isFetching} = (UseFetchCollectiblesProductModule).useFetchCollectiblesProduct(a0);
|
|
const type = product == null || product.items[0] == null ? value2 : product.items[0].type;
|
|
const CollectiblesItemType = (CollectiblesItemTypeModule).CollectiblesItemType;
|
|
const NAMEPLATE = CollectiblesItemType.NAMEPLATE;
|
|
const r4 = type !== NAMEPLATE ? value2 : product.items[0];
|
|
const object = {nameplateProduct: product, nameplateRecord: r4};
|
|
object.nameplateData = (require(1901) /* metro dependency 1901: utils */).getNameplateData(r4);
|
|
object.isFetching = isFetching;
|
|
return object;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun100862, 13222, [8461, 1904, 1901, 2]) /* metro module 13222, dependencies: [8461, 1904, 1901, 2] */;
|