decord/source/modules/collectibles/hooks/useShouldShowPremiumProfileFrameCTA.tsx

23 lines
945 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 12043
// Function ID: 12044
2026-07-20 16:05:17 +00:00
// Name: useShouldShowPremiumProfileFrameCTA
2026-08-24 06:08:38 +00:00
// Dependencies: [12044, 9270, 1949, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// 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");
2026-07-20 16:05:17 +00:00
export default function useShouldShowPremiumProfileFrameCTA(location) {
const _location = location.location;
2026-08-24 06:08:38 +00:00
let tmp2 = useShouldShowPremiumProfileFrameEADefault(_location) && !useCanPurchaseFramesDefault(_location);
2026-07-29 08:29:29 +00:00
if (tmp2) {
2026-08-24 06:08:38 +00:00
tmp2 = location.product.type === CollectiblesItemType.CollectiblesItemType.PROFILE_FRAME;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
};