2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 11178
|
|
|
|
|
// Function ID: 11179
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: useGiftingPromotionDefaultSelection
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: useGiftingPromotionDefaultSelectionV2
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 11178 (useGiftingPromotionDefaultSelection)
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/premium/gifting/hooks/useGiftingPromotionDefaultSelection.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const useGiftingPromotionDefaultSelectionV2 = function useGiftingPromotionDefaultSelectionV2(claimableRewards, selectedGiftingPromotionReward) {
|
|
|
|
|
if (null != claimableRewards) {
|
|
|
|
|
if (0 !== claimableRewards.length) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let first = selectedGiftingPromotionReward;
|
|
|
|
|
if (null == selectedGiftingPromotionReward) {
|
2026-07-20 16:05:17 +00:00
|
|
|
first = claimableRewards[0];
|
|
|
|
|
}
|
|
|
|
|
return first;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|