16 lines
606 B
TypeScript
16 lines
606 B
TypeScript
// Metro module 11911 (f11912).
|
|
import useShouldShowPremiumProfileFrameEA from "./useShouldShowPremiumProfileFrameEA";
|
|
import useCanPurchaseFrames from "./useCanPurchaseFrames";
|
|
import { CollectiblesItemType } from "../../../_bundle/Module1901";
|
|
export default function useShouldShowPremiumProfileFrameCTA({ location: location2, product }) {
|
|
let r11 = useShouldShowPremiumProfileFrameEA(location2);
|
|
const canPurchaseFrames = useCanPurchaseFrames(location2);
|
|
if (r11) {
|
|
r11 = !canPurchaseFrames;
|
|
}
|
|
if (r11) {
|
|
r11 = product.type === CollectiblesItemType.PROFILE_FRAME;
|
|
}
|
|
return r11;
|
|
};
|