22 lines
945 B
TypeScript
22 lines
945 B
TypeScript
// Module ID: 12043
|
|
// Function ID: 12044
|
|
// Name: useShouldShowPremiumProfileFrameCTA
|
|
// Dependencies: [12044, 9270, 1949, 2]
|
|
// Exports: default
|
|
|
|
// Module 12043 (useShouldShowPremiumProfileFrameCTA)
|
|
import set from "set" /* 2 */;
|
|
import CollectiblesItemType from "CollectiblesItemType" /* 1949 */;
|
|
import useCanPurchaseFramesDefault from "useCanPurchaseFrames" /* 9270 */;
|
|
import useShouldShowPremiumProfileFrameEADefault from "useShouldShowPremiumProfileFrameEA" /* 12044 */;
|
|
|
|
const result = set.fileFinishedImporting("modules/collectibles/hooks/useShouldShowPremiumProfileFrameCTA.tsx");
|
|
|
|
export default function useShouldShowPremiumProfileFrameCTA(location) {
|
|
const _location = location.location;
|
|
let tmp2 = useShouldShowPremiumProfileFrameEADefault(_location) && !useCanPurchaseFramesDefault(_location);
|
|
if (tmp2) {
|
|
tmp2 = location.product.type === CollectiblesItemType.CollectiblesItemType.PROFILE_FRAME;
|
|
}
|
|
return tmp2;
|
|
};
|