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

60 lines
2.5 KiB
TypeScript
Raw Normal View History

// Module ID: 12698
// Function ID: 12699
// Name: GuildPowerupsPerksSection
// Dependencies: [17, 21, 4636, 576, 12681, 1114, 2428, 12699, 12701, 12703, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 12698 (GuildPowerupsPerksSection)
import _mod17 from "module_17" /* 17 */;
import nativeDefault from "native" /* 576 */;
import util from "util" /* 1114 */;
import _modDef2428 from "module_2428" /* 2428 */;
import GuildPowerupsSectionHeaderDefault from "GuildPowerupsSectionHeader" /* 12681 */;
import GuildPowerupsSinglePerkCardDefault from "GuildPowerupsSinglePerkCard" /* 12699 */;
import GuildPowerupsMultiPerkCardDefault from "GuildPowerupsMultiPerkCard" /* 12701 */;
import GuildPowerupsGameServerCardDefault from "GuildPowerupsGameServerCard" /* 12703 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
import createStyles from "createStyles" /* 4636 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const View = _mod17.View;
({ jsx: closure_4, Fragment: hasOwnProperty, jsxs: metroRequire } = jsxProd);
let obj = { container: { flexDirection: "column", gap: nativeDefault.space.PX_16 } };
let closure_7 = createStyles.createStyles(obj);
const result = size.fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsPerksSection.tsx");
2026-07-20 16:05:17 +00:00
export default function GuildPowerupPerksSection(arg0) {
2026-07-23 10:11:24 +00:00
({ guildId: require, listings } = arg0);
2026-07-29 08:29:29 +00:00
let obj = { children: null };
let obj2 = { title: null, description: null };
const tmp = closure_7();
const intl = util.intl;
obj2.title = intl.string(_modDef2428.TV3Vm8);
const intl2 = util.intl;
obj2.description = intl2.string(_modDef2428.STx9hp);
const items = [closure_4(GuildPowerupsSectionHeaderDefault, obj2), ];
items[1] = closure_4(View, {
2026-07-20 16:05:17 +00:00
style: tmp.container,
children: listings.map((type, index) => {
2026-07-20 16:05:17 +00:00
type = type.type;
if ("singlePerk" === type) {
const obj2 = { guildId, powerup: null, badge: null };
({ powerup: obj3.powerup, badge: obj3.badge } = type);
return React4(GuildPowerupsSinglePerkCardDefault, obj2, type.powerup.skuId);
2026-07-20 16:05:17 +00:00
} else if ("multiPerk" === type) {
const obj5 = { guildId, listing: type };
2026-07-20 16:05:17 +00:00
const _HermesInternal2 = HermesInternal;
return React4(GuildPowerupsMultiPerkCardDefault, obj5, "" + type.group + "-" + index);
2026-07-20 16:05:17 +00:00
} else if ("gameServer" === type) {
const obj = { guildId };
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal;
return React4(GuildPowerupsGameServerCardDefault, obj, "game-server-" + index);
2026-07-20 16:05:17 +00:00
} else {
return null;
}
})
});
obj.children = items;
return closure_6(closure_5, obj);
2026-07-20 16:05:17 +00:00
};