// Metro module 11749 (f11750). import { isGuildTextChannelType } from "../../records/ChannelRecord"; import ChannelStore from "../../stores/ChannelStore"; import GuildStore from "../../stores/GuildStore"; import SelectedChannelStore from "../../stores/SelectedChannelStore"; import { GuildFeatures } from "../../Constants"; import { useStateFromStores } from "../../_bundle/Module589"; export default function useWelcomeScreenEnabled(c19128_0, c19128_1) { return useStateFromStores([ChannelStore, GuildStore, SelectedChannelStore], () => { const guild = GuildStore.getGuild(c19128_1); if ((guild == null ? void 0 : guild.features.has(GuildFeatures.WELCOME_SCREEN_ENABLED)) === true && guild.features.has(GuildFeatures.COMMUNITY)) { if (guild.features.has(GuildFeatures.GUILD_SERVER_GUIDE)) { return false; } const channel = ChannelStore.getChannel(c19128_0); return c19128_0 === SelectedChannelStore.getChannelId(c19128_1) && channel != null && channel.getGuildId() === guild.id && isGuildTextChannelType(channel.type); } return false; }); };