decord/source/modules/premium/powerups/utils/getGuildPowerupsBoostInfoText.tsx

32 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11772
// Function ID: 11773
2026-07-20 16:05:17 +00:00
// Name: getGuildPowerupsBoostInfoText
2026-08-24 06:08:38 +00:00
// Dependencies: [4266, 1236, 2368, 2]
2026-07-20 16:05:17 +00:00
// Exports: getGuildPowerupsBoostInfoText
2026-08-24 06:08:38 +00:00
// Module 11772 (getGuildPowerupsBoostInfoText)
import set from "set" /* 2 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import messagesProxyDefault from "messagesProxy" /* 2368 */;
import BoostedGuildTiers from "BoostedGuildTiers" /* 4266 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const BoostInfoType = BoostedGuildTiers.BoostInfoType;
const result = set.fileFinishedImporting("modules/premium/powerups/utils/getGuildPowerupsBoostInfoText.tsx");
2026-07-20 16:05:17 +00:00
export const getGuildPowerupsBoostInfoText = function getGuildPowerupsBoostInfoText(count, type) {
if (BoostInfoType.AVAILABLE === type) {
2026-08-24 06:08:38 +00:00
const intl3 = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
let obj = { boostCount: null };
obj[0] = count;
2026-08-24 06:08:38 +00:00
return intl3.formatToPlainString(messagesProxyDefault.BdRXZA, obj);
2026-07-29 08:29:29 +00:00
} else if (tmp.SPENT === type) {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
obj = { boostCount: null };
obj[0] = count;
2026-08-24 06:08:38 +00:00
return intl2.formatToPlainString(messagesProxyDefault.xvgIVG, obj);
2026-07-29 08:29:29 +00:00
} else if (tmp.TOTAL === type) {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(messagesProxyDefault["/F7Z2y"]);
2026-07-20 16:05:17 +00:00
}
};