decord/source/modules/collectibles/hooks/useShouldShowPremiumProfileFrameCTA.tsx
2026-08-25 06:04:03 +00:00

22 lines
945 B
TypeScript

// Module ID: 12368
// Function ID: 12369
// Name: useShouldShowPremiumProfileFrameCTA
// Dependencies: [12369, 9549, 1950, 2]
// Exports: default
// Module 12368 (useShouldShowPremiumProfileFrameCTA)
import set from "set" /* 2 */;
import CollectiblesItemType from "CollectiblesItemType" /* 1950 */;
import useCanPurchaseFramesDefault from "useCanPurchaseFrames" /* 9549 */;
import useShouldShowPremiumProfileFrameEADefault from "useShouldShowPremiumProfileFrameEA" /* 12369 */;
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;
};