/* Metro module 11573; source: modules/app_launcher/hooks/useCommandContext.tsx; dependencies: [31, 1867, 2] */ 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 closure = getCommandContext; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_0 = importAll(31) /* metro dependency 31 */; const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/hooks/useCommandContext.tsx'); exports.getCommandContext = closure; 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 object2; var channel; var getGuild; if (a0.type === 'contextless') { r0 = {channel: undefined, guild: undefined}; } else { object2 = {}; channel = a0.channel; object2.channel = channel; getGuild = GuildStore.getGuild; channel = a0.channel; object2.guild = Reflect.apply(getGuild, GuildStore, [channel.guild_id]); r0 = object2; } 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]); }