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

48 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 11644
// Function ID: 11645
2026-07-20 16:05:17 +00:00
// Name: GuildPowerupsBoostInfo
2026-07-29 08:29:29 +00:00
// Dependencies: [17, 4077, 21, 4189, 712, 11645, 6618, 4185, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 11644 (GuildPowerupsBoostInfo)
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import { BoostInfoType } from "BoostedGuildTiers";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
let obj = { container: null, headerContainer: null };
obj = { flex: 1, alignItems: "center", justifyContent: "center", paddingVertical: require("Themes").space.PX_12 };
obj[0] = obj;
obj[1] = { flexDirection: "row", alignItems: "center", justifyContent: "center", display: "flex" };
let closure_7 = createCacheKey.createStyles(obj);
2026-07-23 10:11:24 +00:00
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);
2026-07-29 08:29:29 +00:00
const tmp = callback();
let obj = require(11645) /* getGuildPowerupsBoostInfoText */;
2026-07-20 16:05:17 +00:00
const guildPowerupsBoostInfoText = obj.getGuildPowerupsBoostInfoText(count, type);
2026-07-29 08:29:29 +00:00
obj = { style: tmp.container, accessible: true, accessibilityLabel: "" + count + ", " + guildPowerupsBoostInfoText, children: null };
obj = { style: tmp.headerContainer, importantForAccessibility: "no-hide-descendants", accessible: false, children: null };
2026-07-20 16:05:17 +00:00
if (type === BoostInfoType.AVAILABLE) {
2026-07-29 08:29:29 +00:00
let TEXT_MUTED = importDefault(712).unsafe_rawColors.GUILD_BOOSTING_PINK;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
TEXT_MUTED = importDefault(712).colors.TEXT_MUTED;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items = [closure_5(require(6618) /* BoostGemIcon */.BoostGemIcon, { size: "sm", color: TEXT_MUTED }), ];
2026-07-20 16:05:17 +00:00
let str = "text-subtle";
if (type === BoostInfoType.AVAILABLE) {
str = "text-strong";
}
2026-07-29 08:29:29 +00:00
items[1] = closure_5(require(4185) /* Text */.Text, { variant: "text-lg/medium", color: str, importantForAccessibility: "no-hide-descendants", children: count });
obj[3] = items;
const items1 = [closure_6(View, obj), closure_5(require(4185) /* Text */.Text, { variant: "text-md/normal", color: "text-subtle", importantForAccessibility: "no-hide-descendants", children: guildPowerupsBoostInfoText })];
obj[3] = items1;
2026-07-20 16:05:17 +00:00
return closure_6(View, obj);
};