33 lines
2.0 KiB
TypeScript
33 lines
2.0 KiB
TypeScript
/* Metro module 11840; source: modules/hub/useIsHubForGuild.tsx; dependencies: [1867, 661, 566, 2] */
|
|
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun90747(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12026:6, offset: 0x02043e69, size: 136 bytes, params: 8, frame: 18
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/hub/useIsHubForGuild.tsx');
|
|
exports.default = function(a0) {
|
|
var env0_0 = a0;
|
|
return require(dependencyMap[2]).useStateFromStores([GuildStore], _fun90749, [a0]);
|
|
};
|
|
function useIsHubForGuild(a0) { // fn#90748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12026:206, offset: 0x02043ef1, size: 75 bytes, params: 2, frame: 16
|
|
const env0_0 = a0;
|
|
return (FluxModule).useStateFromStores([GuildStore], _fun90749, [a0]);
|
|
function _fun90749() { // fn#90749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12026:274, offset: 0x02043f3c, size: 86 bytes, params: 1, frame: 13
|
|
if (env0_0 == null) {
|
|
return false;
|
|
}
|
|
const guild = GuildStore.getGuild(env0_0);
|
|
const r1 = guild == null ? undefined : guild.features.has(GuildFeatures.HUB);
|
|
return r1 != null && r1;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun90747, 11840, [1867, 661, 566, 2]) /* metro module 11840, dependencies: [1867, 661, 566, 2] */;
|