10 lines
520 B
TypeScript
10 lines
520 B
TypeScript
// Metro module 9710 (f9711).
|
|
import { PremiumTypes } from "../../../PremiumConstants";
|
|
import { useNativeGiftContext } from "../../../../payments/native/NativeGiftContext";
|
|
export default function useShouldShowGiftingPromotionDeco(a0) {
|
|
const nativeGiftContext = useNativeGiftContext();
|
|
const { claimableRewards, premiumType } = nativeGiftContext;
|
|
const r2 = a0 != null ? a0 === PremiumTypes.TIER_2 : premiumType === PremiumTypes.TIER_2;
|
|
return claimableRewards != null && claimableRewards.length > 0 && r2;
|
|
};
|