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,30 @@
// Metro module 13045 (f13046).
import { AnalyticEvents, GuildFeatures } from "../../../Constants";
import { isFavoritesGuildId } from "../../favorites/FavoritesUtils";
import AnalyticsUtils from "../../../utils/AnalyticsUtils";
import { shouldNSFWGateGuild } from "../../age_gate/native/AgeGateUtils";
import ActionSheetActionCreators from "../../action_sheet/native/ActionSheetActionCreators";
import * as _asyncRequire from "../../../_bundle/asyncRequire";
export default function openGuildActionSheet(a0, expanded = true) {
if (!isFavoritesGuildId(a0.id)) {
AnalyticsUtils.track(AnalyticEvents.OPEN_POPOUT, {
type: "Guild Profile",
guild_id: a0.id
});
if (shouldNSFWGateGuild(a0.id)) {
ActionSheetActionCreators.openLazy(import("../../age_gate/native/components/NsfwGateGuildSettingsActionSheet"), "NsfwGateGuildSettingsActionSheet", {
guild: a0
});
} else if (a0.features.has(GuildFeatures.HUB)) {
ActionSheetActionCreators.openLazy(_asyncRequire(dependencyMap[7], dependencyMap.paths), `GuildActionSheet:${a0.id}`, {
guild: a0,
expanded
});
} else {
ActionSheetActionCreators.openLazy(_asyncRequire(dependencyMap[8], dependencyMap.paths), `GuildActionSheet:${a0.id}`, {
guild: a0,
expanded
});
}
}
};