This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,29 @@
// Metro module 15364 (f15365).
import { ChannelTypes } from "../../../../Constants";
import { AnnouncementsIcon } from "../../../../design/components/Icon/native/redesign/generated/AnnouncementsIcon";
import { VoiceNormalIcon } from "../../../../design/components/Icon/native/redesign/generated/VoiceNormalIcon";
import { StageIcon } from "../../../../design/components/Icon/native/redesign/generated/StageIcon";
import { TextIcon } from "../../../../design/components/Icon/native/redesign/generated/TextIcon";
import { ForumIcon } from "../../../../design/components/Icon/native/redesign/generated/ForumIcon";
import { ImageIcon } from "../../../../design/components/Icon/native/redesign/generated/ImageIcon";
export function getIconForChannel({ type }) {
if (ChannelTypes.GUILD_ANNOUNCEMENT === type) {
return AnnouncementsIcon;
}
if (ChannelTypes.GUILD_VOICE === type) {
return VoiceNormalIcon;
}
if (ChannelTypes.GUILD_STAGE_VOICE === type) {
return StageIcon;
}
if (ChannelTypes.GUILD_TEXT === type) {
return TextIcon;
}
if (ChannelTypes.GUILD_FORUM === type) {
return ForumIcon;
}
if (ChannelTypes.GUILD_MEDIA === type) {
return ImageIcon;
}
return TextIcon;
}
@@ -0,0 +1,21 @@
// Metro module 15362 (f15363).
import ICYMIActionCreators from "../../ICYMIActionCreators";
import ActionSheetActionCreators from "../../../action_sheet/native/ActionSheetActionCreators";
export function openDetailsActionSheet({ guildId, channelId, id, type }) {
ICYMIActionCreators.itemInteracted(id, type, "overflow_menu");
ICYMIActionCreators.feedItemActioned({
itemId: id,
itemType: type,
actionParameters: {
actionGestureType: "press",
actionTargetElement: "overflow_menu_button",
actionIntentType: "open",
actionDestinationType: null
}
});
ActionSheetActionCreators.openLazy(import("../ItemDetailsActionSheet"), "ItemDetailsActionSheet", {
guildId,
channelId,
id
});
}