decord/source/modules/premium/gifting/hooks/useGiftingPromotionDefaultSelection.tsx
2026-08-24 06:08:38 +00:00

22 lines
772 B
TypeScript

// Module ID: 10418
// Function ID: 10419
// Name: useGiftingPromotionDefaultSelectionV2
// Dependencies: [2]
// Exports: useGiftingPromotionDefaultSelectionV2
// Module 10418 (useGiftingPromotionDefaultSelectionV2)
import set from "set" /* 2 */;
const result = set.fileFinishedImporting("modules/premium/gifting/hooks/useGiftingPromotionDefaultSelection.tsx");
export const useGiftingPromotionDefaultSelectionV2 = function useGiftingPromotionDefaultSelectionV2(claimableRewards, selectedGiftingPromotionReward) {
if (null != claimableRewards) {
if (0 !== claimableRewards.length) {
let first = selectedGiftingPromotionReward;
if (null == selectedGiftingPromotionReward) {
first = claimableRewards[0];
}
return first;
}
}
};