2026-09-16 07:03:15 +00:00
|
|
|
// Module ID: 11488
|
|
|
|
|
// Function ID: 11489
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useIsSelectedResourceChannel
|
2026-09-16 07:03:15 +00:00
|
|
|
// Dependencies: [7390, 1958, 2012, 1074, 1965, 563, 1385, 11489, 7332, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-16 07:03:15 +00:00
|
|
|
// Module 11488 (useIsSelectedResourceChannel)
|
2026-09-15 14:23:42 +00:00
|
|
|
import FlagUtils from "FlagUtils" /* 1385 */;
|
2026-09-16 07:03:15 +00:00
|
|
|
import isSelectedFromHomeChannelDefault from "isSelectedFromHomeChannel" /* 11489 */;
|
|
|
|
|
import ChannelSectionStore from "ChannelSectionStore" /* 7390 */;
|
2026-09-15 14:23:42 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 1958 */;
|
|
|
|
|
import SelectedChannelStore from "SelectedChannelStore" /* 2012 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = globalThis.__r;
|
|
|
|
|
|
|
|
|
|
require = fn;
|
|
|
|
|
const EMPTY_STRING_SNOWFLAKE_ID = fn(1074).EMPTY_STRING_SNOWFLAKE_ID;
|
2026-09-15 14:23:42 +00:00
|
|
|
const ChannelFlags = fn(1965).ChannelFlags;
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/guild_onboarding_home/useIsSelectedResourceChannel.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useIsSelectedResourceChannel(arg0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
_require = arg0;
|
|
|
|
|
const items = [ChannelStore, SelectedChannelStore, ChannelSectionStore];
|
|
|
|
|
const stateFromStores = require("useStateFromStores").useStateFromStores(items, () => {
|
|
|
|
|
const channel = ChannelStore.getChannel(closure_0);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != channel) {
|
2026-09-10 05:38:07 +00:00
|
|
|
if (obj.hasFlag(channel.flags, ChannelFlags.IS_GUILD_RESOURCE_CHANNEL)) {
|
|
|
|
|
if (isSelectedFromHomeChannelDefault(channel, SelectedChannelStore, ChannelSectionStore)) {
|
2026-07-20 16:05:17 +00:00
|
|
|
return channel.guild_id;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
obj = FlagUtils;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
});
|
2026-09-10 05:38:07 +00:00
|
|
|
let obj = require("useStateFromStores");
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp2 = stateFromStores;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (stateFromStores == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp2 = EMPTY_STRING_SNOWFLAKE_ID;
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj2 = require("OnboardingHomeUtils");
|
|
|
|
|
return null != stateFromStores && require("OnboardingHomeUtils").useCanSeeOnboardingHome(tmp2);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|