decord/stable/source/modules/collectibles/hooks/useShouldShowPremiumProfileFrameCTA.tsx
github-actions 528a3dd5ba chore: update source for stable 345.9
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4745.js (118.4 MB)
2026-09-18 20:18:48 +00:00

22 lines
952 B
TypeScript

// Module ID: 13164
// Function ID: 13165
// Name: useShouldShowPremiumProfileFrameCTA
// Dependencies: [13165, 8836, 1889, 2]
// Exports: default
// Module 13164 (useShouldShowPremiumProfileFrameCTA)
import CollectiblesItemType from "CollectiblesItemType" /* 1889 */;
import useCanPurchaseFramesDefault from "useCanPurchaseFrames" /* 8836 */;
import useShouldShowPremiumProfileFrameEADefault from "useShouldShowPremiumProfileFrameEA" /* 13165 */;
import size from "module_2" /* 2 */;
const result = size.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;
};