decord/source/modules/guild_onboarding_home/useIsSelectedResourceChannel.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

43 lines
1.7 KiB
TypeScript

// Module ID: 11496
// Function ID: 11497
// Name: useIsSelectedResourceChannel
// Dependencies: [7394, 1958, 2012, 1074, 1965, 563, 1385, 11497, 7336, 2]
// Exports: default
// Module 11496 (useIsSelectedResourceChannel)
import FlagUtils from "FlagUtils" /* 1385 */;
import isSelectedFromHomeChannelDefault from "isSelectedFromHomeChannel" /* 11497 */;
import ChannelSectionStore from "ChannelSectionStore" /* 7394 */;
import ChannelStore from "ChannelStore" /* 1958 */;
import SelectedChannelStore from "SelectedChannelStore" /* 2012 */;
const require = globalThis.__r;
require = fn;
const EMPTY_STRING_SNOWFLAKE_ID = fn(1074).EMPTY_STRING_SNOWFLAKE_ID;
const ChannelFlags = fn(1965).ChannelFlags;
const size = fn(2);
const result = size.fileFinishedImporting("modules/guild_onboarding_home/useIsSelectedResourceChannel.tsx");
export default function useIsSelectedResourceChannel(arg0) {
_require = arg0;
const items = [ChannelStore, SelectedChannelStore, ChannelSectionStore];
const stateFromStores = require("useStateFromStores").useStateFromStores(items, () => {
const channel = ChannelStore.getChannel(closure_0);
if (null != channel) {
if (obj.hasFlag(channel.flags, ChannelFlags.IS_GUILD_RESOURCE_CHANNEL)) {
if (isSelectedFromHomeChannelDefault(channel, SelectedChannelStore, ChannelSectionStore)) {
return channel.guild_id;
}
}
obj = FlagUtils;
}
});
let obj = require("useStateFromStores");
let tmp2 = stateFromStores;
if (stateFromStores == null) {
tmp2 = EMPTY_STRING_SNOWFLAKE_ID;
}
const obj2 = require("OnboardingHomeUtils");
return null != stateFromStores && require("OnboardingHomeUtils").useCanSeeOnboardingHome(tmp2);
};