30 lines
1.2 KiB
TypeScript
30 lines
1.2 KiB
TypeScript
// Module ID: 12020
|
|
// Function ID: 12021
|
|
// Name: useMobileCollectiblesPurchaseSKU
|
|
// Dependencies: [1922, 589, 9286, 10396, 2]
|
|
// Exports: default
|
|
|
|
// Module 12020 (useMobileCollectiblesPurchaseSKU)
|
|
import initialize from "initialize" /* 589 */;
|
|
import hasAtLeastOneGPlaySynced from "hasAtLeastOneGPlaySynced" /* 9286 */;
|
|
import useMobilePurchaseSKUDefault from "useMobilePurchaseSKU" /* 10396 */;
|
|
import closure_3 from "mergeGuildAvatar" /* 1922 */;
|
|
|
|
require = arg1;
|
|
const result = require("set").fileFinishedImporting("modules/collectibles/native/hooks/useMobileCollectiblesPurchaseSKU.android.tsx");
|
|
|
|
export default function useMobileCollectiblesPurchaseSKU(product) {
|
|
product = product.product;
|
|
const merged = Object.assign(product, Object.create(null));
|
|
let obj = initialize;
|
|
const items = [closure_3];
|
|
const stateFromStores = obj.useStateFromStores(items, () => currentUser.getCurrentUser());
|
|
const collectibleGoogleSkuId = hasAtLeastOneGPlaySynced.getCollectibleGoogleSkuId(product, stateFromStores);
|
|
obj = {};
|
|
const obj2 = hasAtLeastOneGPlaySynced;
|
|
const merged1 = Object.assign(merged);
|
|
obj.skuId = product.skuId;
|
|
obj.platformSkuId = collectibleGoogleSkuId;
|
|
obj.isFreeForStaffSelfPurchase = true;
|
|
return useMobilePurchaseSKUDefault(obj);
|
|
};
|