decord/source/modules/guilds_bar/native/GuildsBarMessages.tsx

56 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 15512
// Function ID: 15513
// Dependencies: [19, 4165, 676, 21, 15513, 1367, 15499, 589, 15501, 712, 1236, 15514, 4841, 2]
2026-07-20 16:05:17 +00:00
2026-08-13 07:00:46 +00:00
// Module 15512
2026-07-29 08:29:29 +00:00
import handleConnectionOpen from "handleConnectionOpen";
2026-07-23 10:11:24 +00:00
import { ME } from "ME";
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
let closure_6 = {
onPress() {
2026-08-13 07:00:46 +00:00
importDefault(15513)(ME);
2026-07-20 16:05:17 +00:00
}
};
2026-07-29 08:29:29 +00:00
const memoResult = require("noop").memo(function GuildsBarMessages() {
2026-07-20 16:05:17 +00:00
let badge;
let cutouts;
2026-08-11 06:20:06 +00:00
const tmp3 = importDefault(1367)("GuildsBarMessages");
2026-08-13 07:00:46 +00:00
let obj = require(15499) /* UnreadIndicator */;
2026-07-20 16:05:17 +00:00
const guildsBarAnimatedWrapperStyles = obj.useGuildsBarAnimatedWrapperStyles();
2026-07-29 08:29:29 +00:00
const items = [handleConnectionOpen];
const stateFromStores = require(589) /* initialize */.useStateFromStores(items, () => {
guildId = guildId.getGuildId();
2026-07-20 16:05:17 +00:00
let tmp2 = null == guildId;
if (!tmp2) {
2026-07-29 08:29:29 +00:00
tmp2 = guildId === closure_4;
2026-07-20 16:05:17 +00:00
}
return tmp2;
});
2026-07-29 08:29:29 +00:00
const obj2 = require(589) /* initialize */;
2026-08-13 07:00:46 +00:00
({ badge, cutouts } = importDefault(15501)({ mentionCount: 0 }));
2026-07-29 08:29:29 +00:00
const colors = importDefault(712).colors;
2026-08-13 07:00:46 +00:00
obj = { selected: stateFromStores, circle: null, unread: false, styles: null, cutouts: null, config: null, overState: "y", label: "Grant Channel Access", externalChildren: "Manage Channel Access", expandedChildren: "Guild Scheduled Event Invite Button Embed", children: "REMOVE_AUTOMOD_MESSAGE_NOTICE" };
2026-07-29 08:29:29 +00:00
let tmp11 = !tmp3;
2026-08-13 07:00:46 +00:00
const tmp7 = importDefault(15501)({ mentionCount: 0 });
2026-07-29 08:29:29 +00:00
const tmp8 = stateFromStores ? colors.WHITE : colors.MOBILE_GUILDBAR_ICON_DEFAULT;
if (!tmp3) {
tmp11 = !stateFromStores;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[1] = tmp11;
obj[3] = guildsBarAnimatedWrapperStyles;
obj[4] = cutouts;
obj[5] = closure_6;
const intl = tmp4(1236).intl;
obj[7] = intl.string(require(1236) /* getSystemLocale */.t.YUU0RF);
obj[8] = badge;
2026-08-13 07:00:46 +00:00
obj[9] = jsx(importDefault(15514), {});
obj[10] = jsx(require(4841) /* ChatIcon */.ChatIcon, { color: tmp8 });
return jsx(importDefault(15499), { selected: stateFromStores, circle: null, unread: false, styles: null, cutouts: null, config: null, overState: "y", label: "Grant Channel Access", externalChildren: "Manage Channel Access", expandedChildren: "Guild Scheduled Event Invite Button Embed", children: "REMOVE_AUTOMOD_MESSAGE_NOTICE" });
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
const result = require("ME").fileFinishedImporting("modules/guilds_bar/native/GuildsBarMessages.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;