Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
53 lines
2.6 KiB
TypeScript
53 lines
2.6 KiB
TypeScript
// Module ID: 16379
|
|
// Function ID: 16380
|
|
// Name: GuildsBarMessages
|
|
// Dependencies: [19, 4428, 1074, 21, 16380, 16365, 504, 16368, 576, 1114, 16381, 5123, 2]
|
|
|
|
// Module 16379 (GuildsBarMessages)
|
|
import initialize from "initialize" /* 504 */;
|
|
import nativeDefault from "native" /* 576 */;
|
|
import util from "util" /* 1114 */;
|
|
import ChatIcon from "ChatIcon" /* 5123 */;
|
|
import GuildsBarAnimatedItemWrapper from "GuildsBarAnimatedItemWrapper" /* 16365 */;
|
|
import useGuildsBarBottomRightBadgeDefault from "useGuildsBarBottomRightBadge" /* 16368 */;
|
|
import transitionGuildsBarToGuildOrOpenSelectedChannelDefault from "transitionGuildsBarToGuildOrOpenSelectedChannel" /* 16380 */;
|
|
import HomeDrawerDirectMessagesRowDefault from "HomeDrawerDirectMessagesRow" /* 16381 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import SelectedGuildStore from "SelectedGuildStore" /* 4428 */;
|
|
|
|
const GuildsBarAnimatedItemWrapperDefault = GuildsBarAnimatedItemWrapper;
|
|
|
|
require = fn;
|
|
const ME = fn(1074).ME;
|
|
const jsx = fn(21).jsx;
|
|
const config = {
|
|
onPress() {
|
|
transitionGuildsBarToGuildOrOpenSelectedChannelDefault(ME);
|
|
}
|
|
};
|
|
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];
|
|
const stateFromStores = initialize.useStateFromStores(items, () => {
|
|
guildId = guildId.getGuildId();
|
|
let tmp2 = null == guildId;
|
|
if (!tmp2) {
|
|
tmp2 = guildId === ME;
|
|
}
|
|
return tmp2;
|
|
});
|
|
({ badge, cutouts } = useGuildsBarBottomRightBadgeDefault({ mentionCount: 0 }));
|
|
const colors = nativeDefault.colors;
|
|
const obj3 = { selected: stateFromStores, circle: false, unread: false, styles: guildsBarAnimatedWrapperStyles, cutouts, config, overState: "y", label: "arrow", externalChildren: "button", expandedChildren: "next", children: "scene" };
|
|
const tmp6 = useGuildsBarBottomRightBadgeDefault({ mentionCount: 0 });
|
|
const tmp7 = stateFromStores ? colors.WHITE : colors.MOBILE_GUILDBAR_ICON_DEFAULT;
|
|
const intl = tmp(1114).intl;
|
|
obj3.label = intl.string(util.t.YUU0RF);
|
|
obj3.externalChildren = badge;
|
|
obj3.expandedChildren = jsx(HomeDrawerDirectMessagesRowDefault, {});
|
|
obj3.children = jsx(ChatIcon.ChatIcon, { color: tmp7 });
|
|
return jsx(GuildsBarAnimatedItemWrapperDefault, { selected: stateFromStores, circle: false, unread: false, styles: guildsBarAnimatedWrapperStyles, cutouts, config, overState: "y", label: "arrow", externalChildren: "button", expandedChildren: "next", children: "scene" });
|
|
});
|