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

61 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 11646
// Function ID: 11647
2026-07-20 16:05:17 +00:00
// Name: Tier3OverrideNotice
2026-07-29 08:29:29 +00:00
// Dependencies: [17, 21, 4189, 712, 4185, 11647, 11648, 1236, 2255, 11651, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 11646 (Tier3OverrideNotice)
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
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 c4;
let c5;
2026-07-20 16:05:17 +00:00
function Tier3OverrideNotice(children) {
2026-07-29 08:29:29 +00:00
return callback(View, { style: callback2().staffContainer, children: callback(require(4185) /* Text */.Text, { variant: "text-sm/medium", children: children.text }) });
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
({ jsx: c4, jsxs: c5 } = jsxProd);
let obj = { container: null, staffContainer: null };
obj = { gap: require("Themes").space.PX_12, margin: require("Themes").space.PX_16 };
obj[0] = obj;
obj[1] = { padding: require("Themes").space.PX_12, backgroundColor: require("Themes").colors.BACKGROUND_MOD_SUBTLE, borderRadius: require("Themes").radii.md, borderWidth: 1, borderStyle: "solid", borderColor: require("Themes").colors.BORDER_SUBTLE };
let closure_6 = createCacheKey.createStyles(obj);
let obj1 = { padding: require("Themes").space.PX_12, backgroundColor: require("Themes").colors.BACKGROUND_MOD_SUBTLE, borderRadius: require("Themes").radii.md, borderWidth: 1, borderStyle: "solid", borderColor: require("Themes").colors.BORDER_SUBTLE };
const result = require("createCacheKey").fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsNotificationContainer.tsx");
2026-07-20 16:05:17 +00:00
export default function GuildPowerupsNotificationContainer(guildId) {
guildId = guildId.guildId;
2026-07-29 08:29:29 +00:00
const tmp4 = importDefault(11647)(guildId);
const tmp5 = importDefault(11648)(guildId);
if (tmp4.shouldShow) {
let obj = { style: null, children: null };
obj[0] = tmp.container;
obj = { variant: "eyebrow", color: "text-subtle", children: null };
const intl = require(1236) /* getSystemLocale */.intl;
obj[2] = intl.string(tmp2(2255)["3FRirU"]);
const items = [callback(require(4185) /* Text */.Text, obj), , ];
let shouldShow = tmp4.shouldShow;
2026-07-20 16:05:17 +00:00
if (shouldShow) {
2026-07-29 08:29:29 +00:00
obj = { text: null };
obj[0] = tmp4.text;
shouldShow = tmp9(Tier3OverrideNotice, obj);
2026-07-20 16:05:17 +00:00
}
items[1] = shouldShow;
2026-07-29 08:29:29 +00:00
let shouldShow2 = tmp5.shouldShow;
2026-07-20 16:05:17 +00:00
if (shouldShow2) {
2026-07-29 08:29:29 +00:00
const obj1 = { guildId: null, powerupNames: null, warnings: null };
obj1[0] = guildId;
({ expiringPowerupNames: obj4[1], warnings: obj4[2] } = tmp5);
shouldShow2 = tmp9(tmp2(11651), obj1);
2026-07-20 16:05:17 +00:00
}
items[2] = shouldShow2;
2026-07-29 08:29:29 +00:00
obj[1] = items;
let tmp7Result = closure_5(View, obj);
const tmp7 = closure_5;
const tmp8 = View;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp7Result = null;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp7Result;
2026-07-20 16:05:17 +00:00
};