14 lines
651 B
TypeScript
14 lines
651 B
TypeScript
// Metro module 11888 (f11889).
|
|
import UserStore from "../../../../stores/UserStore";
|
|
import { useStateFromStores } from "../../../../_bundle/Module589";
|
|
import { getCollectibleGoogleSkuId } from "../CollectiblesUtils";
|
|
import useMobilePurchaseSKU_android from "../../../billing/native/hooks/useMobilePurchaseSKU.android";
|
|
export default function useMobileCollectiblesPurchaseSKU({ product, ...rest }) {
|
|
return useMobilePurchaseSKU_android({
|
|
...rest,
|
|
skuId: product.skuId,
|
|
platformSkuId: getCollectibleGoogleSkuId(product, useStateFromStores([UserStore], () => UserStore.getCurrentUser())),
|
|
isFreeForStaffSelfPurchase: true
|
|
});
|
|
};
|