20 lines
751 B
TypeScript
20 lines
751 B
TypeScript
// Module ID: 10162
|
|
// Function ID: 10163
|
|
// Name: useGiftingPromotionDefaultSelectionV2
|
|
// Dependencies: [2]
|
|
// Exports: useGiftingPromotionDefaultSelectionV2
|
|
|
|
// Module 10162 (useGiftingPromotionDefaultSelectionV2)
|
|
const result = require("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;
|
|
}
|
|
}
|
|
};
|