29 lines
1.2 KiB
TypeScript
29 lines
1.2 KiB
TypeScript
// Module ID: 11821
|
|
// Function ID: 91725
|
|
// Name: useMobileCollectiblesPurchaseSKU
|
|
// Dependencies: [1850, 566, 8648, 9698, 2]
|
|
// Exports: default
|
|
|
|
// Module 11821 (useMobileCollectiblesPurchaseSKU)
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
const require = arg1;
|
|
const result = require("_createForOfIteratorHelperLoose").fileFinishedImporting("modules/collectibles/native/hooks/useMobileCollectiblesPurchaseSKU.android.tsx");
|
|
|
|
export default function useMobileCollectiblesPurchaseSKU(product) {
|
|
product = product.product;
|
|
let obj = Object.create(null);
|
|
obj.product = 0;
|
|
const merged = Object.assign(product, obj);
|
|
obj = require(566) /* initialize */;
|
|
const items = [_isNativeReflectConstruct];
|
|
const stateFromStores = obj.useStateFromStores(items, () => outer1_3.getCurrentUser());
|
|
const collectibleGoogleSkuId = require(8648) /* _createForOfIteratorHelperLoose */.getCollectibleGoogleSkuId(product, stateFromStores);
|
|
obj = {};
|
|
const obj2 = require(8648) /* _createForOfIteratorHelperLoose */;
|
|
const merged1 = Object.assign(merged);
|
|
obj["skuId"] = product.skuId;
|
|
obj["platformSkuId"] = collectibleGoogleSkuId;
|
|
obj["isFreeForStaffSelfPurchase"] = true;
|
|
return importDefault(9698)(obj);
|
|
};
|