decord/source/modules/premium/powerups/native/GuildPowerupsBoostInfo.tsx

55 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 11581
// Function ID: 90029
2026-07-20 16:05:17 +00:00
// Name: GuildPowerupsBoostInfo
2026-07-27 11:26:19 +00:00
// Dependencies: [27, 4019, 33, 4131, 689, 11582, 6561, 4127, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 11581 (GuildPowerupsBoostInfo)
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import { BoostInfoType } from "BoostedGuildTiers";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_5;
let closure_6;
({ jsx: closure_5, jsxs: closure_6 } = jsxProd);
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { flex: 1, alignItems: "center", justifyContent: "center", paddingVertical: require("_createForOfIteratorHelperLoose").space.PX_12 };
2026-07-20 16:05:17 +00:00
obj.container = obj;
2026-07-23 10:11:24 +00:00
obj.headerContainer = { flexDirection: "row", alignItems: "center", justifyContent: "center", display: "flex" };
let closure_7 = _createForOfIteratorHelperLoose.createStyles(obj);
const result = require("jsxProd").fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsBoostInfo.tsx");
2026-07-20 16:05:17 +00:00
export default function GuildPowerupsBoostInfo(arg0) {
let count;
let type;
({ count, type } = arg0);
const tmp = callback2();
2026-07-27 11:26:19 +00:00
let obj = require(11582) /* getGuildPowerupsBoostInfoText */;
2026-07-20 16:05:17 +00:00
const guildPowerupsBoostInfoText = obj.getGuildPowerupsBoostInfoText(count, type);
obj = { style: tmp.container, accessible: true, accessibilityLabel: "" + count + ", " + guildPowerupsBoostInfoText };
2026-07-23 10:11:24 +00:00
obj = { style: tmp.headerContainer, importantForAccessibility: "no-hide-descendants", accessible: false };
2026-07-20 16:05:17 +00:00
const obj1 = { size: "sm" };
if (type === BoostInfoType.AVAILABLE) {
2026-07-23 10:11:24 +00:00
let TEXT_MUTED = importDefault(689).unsafe_rawColors.GUILD_BOOSTING_PINK;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
TEXT_MUTED = importDefault(689).colors.TEXT_MUTED;
2026-07-20 16:05:17 +00:00
}
obj1.color = TEXT_MUTED;
2026-07-25 08:10:48 +00:00
const items = [callback(require(6561) /* BoostGemIcon */.BoostGemIcon, obj1), ];
2026-07-23 10:11:24 +00:00
const obj2 = { variant: "text-lg/medium", color: null, importantForAccessibility: "no-hide-descendants" };
2026-07-20 16:05:17 +00:00
let str = "text-subtle";
if (type === BoostInfoType.AVAILABLE) {
str = "text-strong";
}
obj2.color = str;
obj2.children = count;
2026-07-25 08:10:48 +00:00
items[1] = callback(require(4127) /* Text */.Text, obj2);
2026-07-20 16:05:17 +00:00
obj.children = items;
2026-07-23 10:11:24 +00:00
const items1 = [closure_6(View, obj), ];
const obj3 = { variant: "text-md/normal", color: "text-subtle", importantForAccessibility: "no-hide-descendants", children: guildPowerupsBoostInfoText };
2026-07-25 08:10:48 +00:00
items1[1] = callback(require(4127) /* Text */.Text, obj3);
2026-07-20 16:05:17 +00:00
obj.children = items1;
return closure_6(View, obj);
};