59 lines
2.5 KiB
TypeScript
59 lines
2.5 KiB
TypeScript
// Module ID: 12053
|
|
// Function ID: 12054
|
|
// Name: GuildPowerupsGameServerCard
|
|
// Dependencies: [19, 17, 4437, 4352, 21, 4445, 712, 589, 12054, 12055, 12046, 12050, 4172, 2]
|
|
// Exports: default
|
|
|
|
// Module 12053 (GuildPowerupsGameServerCard)
|
|
import noopAll from "noop" /* 19 */;
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
import GuildPowerupsPerkCardDefault from "GuildPowerupsPerkCard" /* 12050 */;
|
|
import useGameServerPerkDefault from "useGameServerPerk" /* 12055 */;
|
|
import { View } from "get ActivityIndicator" /* 17 */;
|
|
import closure_4 from "maybeApplyNoTextColorForLightCustomTheme" /* 4437 */;
|
|
import closure_5 from "handleGameServerInstanceCreated" /* 4352 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4445 */;
|
|
|
|
const require = arg1;
|
|
noopAll;
|
|
createCacheKey = { riveContainer: null };
|
|
createCacheKey = { flex: 1, paddingVertical: ThemesDefault.space.PX_8 };
|
|
createCacheKey[0] = createCacheKey;
|
|
let closure_7 = createCacheKey.createStyles(createCacheKey);
|
|
const result = require("set").fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsGameServerCard.tsx");
|
|
|
|
export default function GuildPowerupsGameServerCard(guildId) {
|
|
guildId = guildId.guildId;
|
|
let obj = guildId(589);
|
|
const items = [closure_5];
|
|
const stateFromStores = obj.useStateFromStores(items, () => closure_1_5.getStateForGuild(guildId));
|
|
const tmp = callback();
|
|
const tmp2 = guildId;
|
|
const tmp5 = importDefault;
|
|
const tmp7 = useGameServerPerkDefault(guildId);
|
|
obj1 = guildId(589);
|
|
const items1 = [closure_4];
|
|
const stateFromStores1 = obj1.useStateFromStores(items1, () => useReducedMotion.useReducedMotion);
|
|
let tmp10 = null;
|
|
if (null != stateFromStores) {
|
|
tmp10 = null;
|
|
if (null != tmp7) {
|
|
obj = { title: null, description: null, cost: null, costDecorator: "+", riveComponent: null, badge: "beta", status: null, onPress: null };
|
|
({ title: obj3[0], description: obj3[1], cost: obj3[2] } = tmp7);
|
|
obj = { style: null, children: null };
|
|
obj[0] = tmp.riveContainer;
|
|
obj1 = { stateMachine: "SM_Auto", dataBinding: null };
|
|
const obj2 = { reducedMotion: null };
|
|
obj2[0] = stateFromStores1;
|
|
obj1[1] = obj2;
|
|
obj[1] = jsx(tmp2(4172).GameServerHostingRive, { stateMachine: "SM_Auto", dataBinding: null });
|
|
obj[4] = <View style={null}>{null}</View>;
|
|
obj[6] = tmp6;
|
|
obj[7] = tmp9;
|
|
tmp10 = jsx(GuildPowerupsPerkCardDefault, { style: null, children: null });
|
|
const tmp5Result = GuildPowerupsPerkCardDefault;
|
|
}
|
|
}
|
|
return tmp10;
|
|
};
|