2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 9719
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 75734
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useGiftingPromotionDefaultSelectionV2
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: useGiftingPromotionDefaultSelectionV2
|
|
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 9719 (useGiftingPromotionDefaultSelectionV2)
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/premium/gifting/hooks/useGiftingPromotionDefaultSelection.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const useGiftingPromotionDefaultSelectionV2 = function useGiftingPromotionDefaultSelectionV2(claimableRewards, selectedGiftingPromotionReward) {
|
|
|
|
|
let first = selectedGiftingPromotionReward;
|
|
|
|
|
if (null != claimableRewards) {
|
|
|
|
|
if (0 !== claimableRewards.length) {
|
|
|
|
|
if (null == first) {
|
|
|
|
|
first = claimableRewards[0];
|
|
|
|
|
}
|
|
|
|
|
return first;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|