Files
discord-decomp/modules/premium/powerups/utils/getPowerupEntitlementPrice.tsx
T
2026-11-01 12:12:55 +02:00

22 lines
650 B
TypeScript

// Metro module 4098 (f4099).
export default function getPowerupEntitlementPrice(a0) {
const r6 = a0 == null ? void 0 : a0.tenant_metadata?.guild_monetization;
const r8 = a0 == null;
let r5 = void 0;
if (!r8) {
const sku = a0.sku;
r5 = sku == null ? void 0 : sku.tenant_metadata?.guild_monetization;
}
let r14 = r6 == null ? void 0 : r6.game_server?.boost_price;
if (r14 == null) {
r14 = r6 == null ? void 0 : r6.powerup?.boost_price;
}
if (r14 == null) {
r14 = r5 == null ? void 0 : r5.game_server?.boost_price;
}
if (r14 == null) {
r14 = r5 == null ? void 0 : r5.powerup?.boost_price;
}
return r14;
};