Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
22 lines
775 B
TypeScript
22 lines
775 B
TypeScript
// Module ID: 11179
|
|
// Function ID: 11180
|
|
// Name: useGiftingPromotionDefaultSelection
|
|
// Dependencies: [2]
|
|
// Exports: useGiftingPromotionDefaultSelectionV2
|
|
|
|
// Module 11179 (useGiftingPromotionDefaultSelection)
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.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;
|
|
}
|
|
}
|
|
};
|