19 lines
710 B
TypeScript
19 lines
710 B
TypeScript
// Metro module 8740 (f8741).
|
|
import { useMemo } from "react";
|
|
import UserStore from "../../../../stores/UserStore";
|
|
import { useStateFromStores } from "../../../../_bundle/Module589";
|
|
import { getCollectibleGoogleSkuId } from "../CollectiblesUtils";
|
|
export default function useCollectiblesExternalGatewayFacet(a0) {
|
|
const stateFromStores = useStateFromStores([UserStore], () => UserStore.getCurrentUser());
|
|
return useMemo(() => {
|
|
const collectibleGoogleSkuId = getCollectibleGoogleSkuId(a0, stateFromStores);
|
|
if (collectibleGoogleSkuId != null) {
|
|
return {
|
|
line_items: [{
|
|
external_product_id: collectibleGoogleSkuId
|
|
}]
|
|
};
|
|
}
|
|
}, [stateFromStores, a0]);
|
|
};
|