decord/source/modules/premium/gifting/hooks/useGiftingPromotionDefaultSelection.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

22 lines
772 B
TypeScript

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