decord/source/modules/premium/gifting/hooks/useGiftingPromotionDefaultSelection.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

22 lines
772 B
TypeScript

// Module ID: 10975
// Function ID: 10976
// Name: useGiftingPromotionDefaultSelectionV2
// Dependencies: [2]
// Exports: useGiftingPromotionDefaultSelectionV2
// Module 10975 (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;
}
}
};