/* Metro module 11573; source: modules/app_launcher/hooks/useCommandContext.tsx; dependencies: [31, 1867, 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 ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ function _fun88627(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11759:6, offset: 0x01fec7d8, size: 142 bytes, params: 8, frame: 18 const getCommandContext2 = getCommandContext; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/hooks/useCommandContext.tsx'); exports.getCommandContext = getCommandContext2; exports.useCommandContext = function(a0) { return a0.useMemo(_fun88630, [a0]); }; function getCommandContext(a0) { // fn#88628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11759:116, offset: 0x01fec866, size: 80 bytes, params: 2, frame: 12 var r0; var object; var channel; var guildStoreBinding; var getGuild; if (a0.type === 'contextless') { r0 = {channel: undefined, guild: undefined}; } else { object = {}; channel = a0.channel; object.channel = channel; guildStoreBinding = GuildStore; getGuild = guildStoreBinding.getGuild; channel = a0.channel; object.guild = Reflect.apply(getGuild, guildStoreBinding, [channel.guild_id]); r0 = object; } return r0; } function useCommandContext(a0) { // fn#88629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11759:402, offset: 0x01fec8b6, size: 44 bytes, params: 2, frame: 14 return a0.useMemo(_fun88630, [a0]); function _fun88630() { // fn#88630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11759:450, offset: 0x016f88b2, size: 23 bytes, params: 1, frame: 11 return getCommandContext(ReactModule); } } } global.__d(_fun88627, 11573, [31, 1867, 2]) /* metro module 11573, dependencies: [31, 1867, 2] */;