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

54 lines
2.6 KiB
TypeScript
Raw Normal View History

// Module ID: 16310
// Function ID: 16311
// Dependencies: [19, 4381, 1074, 21, 16311, 16297, 504, 16299, 576, 1114, 16312, 5071, 2]
2026-07-20 16:05:17 +00:00
// Module 16310
import initialize from "initialize" /* 504 */;
import ThemesDefault from "Themes" /* 576 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
import ChatIcon from "ChatIcon" /* 5071 */;
import UnreadIndicator from "UnreadIndicator" /* 16297 */;
import UnreadIndicatorDefault from "UnreadIndicator" /* 16297 */;
import useGuildsBarBottomRightBadgeDefault from "useGuildsBarBottomRightBadge" /* 16299 */;
import transitionGuildsBarToGuildOrOpenSelectedChannelDefault from "transitionGuildsBarToGuildOrOpenSelectedChannel" /* 16311 */;
import HomeDrawerDMsRowDefault from "HomeDrawerDMsRow" /* 16312 */;
import closure_3 from "handleConnectionOpen" /* 4381 */;
import { ME } from "ME" /* 1074 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
import importAllResult from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
let closure_6 = {
onPress() {
2026-08-24 06:08:38 +00:00
transitionGuildsBarToGuildOrOpenSelectedChannelDefault(ME);
2026-07-20 16:05:17 +00:00
}
};
2026-08-24 06:08:38 +00:00
const memoResult = importAllResult.memo(function GuildsBarMessages() {
let obj = UnreadIndicator;
2026-07-20 16:05:17 +00:00
const guildsBarAnimatedWrapperStyles = obj.useGuildsBarAnimatedWrapperStyles();
2026-08-24 06:08:38 +00:00
const items = [closure_3];
const stateFromStores = initialize.useStateFromStores(items, () => {
2026-07-29 08:29:29 +00:00
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-08-24 06:08:38 +00:00
const obj2 = initialize;
({ badge, cutouts } = useGuildsBarBottomRightBadgeDefault({ mentionCount: 0 }));
const colors = ThemesDefault.colors;
obj = { selected: stateFromStores, circle: false, unread: false, styles: guildsBarAnimatedWrapperStyles, cutouts, config: closure_6, overState: "y", label: "eyebrow", externalChildren: "interactive-text-default", expandedChildren: null, children: false };
2026-08-31 15:47:37 +00:00
const tmp6 = useGuildsBarBottomRightBadgeDefault({ mentionCount: 0 });
const tmp7 = stateFromStores ? colors.WHITE : colors.MOBILE_GUILDBAR_ICON_DEFAULT;
const intl = tmp(1114).intl;
2026-08-24 06:08:38 +00:00
obj[7] = intl.string(getSystemLocale.t.YUU0RF);
2026-07-29 08:29:29 +00:00
obj[8] = badge;
2026-08-24 06:08:38 +00:00
obj[9] = jsx(HomeDrawerDMsRowDefault, {});
2026-08-31 15:47:37 +00:00
obj[10] = jsx(ChatIcon.ChatIcon, { color: tmp7 });
return jsx(UnreadIndicatorDefault, { selected: stateFromStores, circle: false, unread: false, styles: guildsBarAnimatedWrapperStyles, cutouts, config: closure_6, overState: "y", label: "eyebrow", externalChildren: "interactive-text-default", expandedChildren: null, children: false });
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/guilds_bar/native/GuildsBarMessages.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;