2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 16403
|
|
|
|
|
// Function ID: 16404
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: GuildsBarMessages
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [19, 4458, 1074, 21, 16404, 16389, 504, 16392, 576, 1114, 16405, 5152, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 16403 (GuildsBarMessages)
|
2026-09-05 10:56:28 +00:00
|
|
|
import initialize from "initialize" /* 504 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import nativeDefault from "native" /* 576 */;
|
|
|
|
|
import util from "util" /* 1114 */;
|
2026-09-12 13:45:10 +00:00
|
|
|
import ChatIcon from "ChatIcon" /* 5152 */;
|
|
|
|
|
import GuildsBarAnimatedItemWrapper from "GuildsBarAnimatedItemWrapper" /* 16389 */;
|
|
|
|
|
import useGuildsBarBottomRightBadgeDefault from "useGuildsBarBottomRightBadge" /* 16392 */;
|
|
|
|
|
import transitionGuildsBarToGuildOrOpenSelectedChannelDefault from "transitionGuildsBarToGuildOrOpenSelectedChannel" /* 16404 */;
|
|
|
|
|
import HomeDrawerDirectMessagesRowDefault from "HomeDrawerDirectMessagesRow" /* 16405 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-09-12 13:45:10 +00:00
|
|
|
import SelectedGuildStore from "SelectedGuildStore" /* 4458 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const GuildsBarAnimatedItemWrapperDefault = GuildsBarAnimatedItemWrapper;
|
|
|
|
|
|
|
|
|
|
require = fn;
|
|
|
|
|
const ME = fn(1074).ME;
|
|
|
|
|
const jsx = fn(21).jsx;
|
|
|
|
|
const config = {
|
2026-07-20 16:05:17 +00:00
|
|
|
onPress() {
|
2026-08-24 06:08:38 +00:00
|
|
|
transitionGuildsBarToGuildOrOpenSelectedChannelDefault(ME);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/guilds_bar/native/GuildsBarMessages.tsx");
|
|
|
|
|
|
|
|
|
|
export default noop.memo(function GuildsBarMessages() {
|
|
|
|
|
const guildsBarAnimatedWrapperStyles = GuildsBarAnimatedItemWrapper.useGuildsBarAnimatedWrapperStyles();
|
|
|
|
|
const items = [SelectedGuildStore];
|
2026-08-24 06:08:38 +00:00
|
|
|
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-09-10 05:38:07 +00:00
|
|
|
tmp2 = guildId === ME;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return tmp2;
|
|
|
|
|
});
|
2026-08-24 06:08:38 +00:00
|
|
|
({ badge, cutouts } = useGuildsBarBottomRightBadgeDefault({ mentionCount: 0 }));
|
2026-09-10 05:38:07 +00:00
|
|
|
const colors = nativeDefault.colors;
|
2026-09-12 13:45:10 +00:00
|
|
|
const obj3 = { selected: stateFromStores, circle: false, unread: false, styles: guildsBarAnimatedWrapperStyles, cutouts, config, overState: "y", label: "33kozedd0zs6fbauka98psnc7zwom2s", externalChildren: null, expandedChildren: false, 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;
|
2026-09-05 10:56:28 +00:00
|
|
|
const intl = tmp(1114).intl;
|
2026-09-10 05:38:07 +00:00
|
|
|
obj3.label = intl.string(util.t.YUU0RF);
|
|
|
|
|
obj3.externalChildren = badge;
|
|
|
|
|
obj3.expandedChildren = jsx(HomeDrawerDirectMessagesRowDefault, {});
|
|
|
|
|
obj3.children = jsx(ChatIcon.ChatIcon, { color: tmp7 });
|
2026-09-12 13:45:10 +00:00
|
|
|
return jsx(GuildsBarAnimatedItemWrapperDefault, { selected: stateFromStores, circle: false, unread: false, styles: guildsBarAnimatedWrapperStyles, cutouts, config, overState: "y", label: "33kozedd0zs6fbauka98psnc7zwom2s", externalChildren: null, expandedChildren: false, children: false });
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|