Files
discord-decomp/sources/modules/app_dms/useShowTryItOutButtonInAppLauncher.tsx
T
2026-07-28 01:06:53 +03:00

33 lines
2.0 KiB
TypeScript

/* Metro module 11683; source: modules/app_dms/useShowTryItOutButtonInAppLauncher.tsx; dependencies: [10657, 8869, 8045, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CanLaunchFrameModule from '../frames/utils/canLaunchFrame.tsx'; /* Metro dependency 8045 */
import * as GetPrimaryAppCommandModule from '../application_commands/getPrimaryAppCommand.tsx'; /* Metro dependency 10657 */
function _fun89539(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11869:6, offset: 0x02012b1a, size: 103 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/app_dms/useShowTryItOutButtonInAppLauncher.tsx');
exports.default = useShowTryItOutButtonInAppLauncher;
function useShowTryItOutButtonInAppLauncher({context, application, botUserId}) { // fn#89540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11869:190, offset: 0x02012b81, size: 172 bytes, params: 2, frame: 18
var r1;
var r0;
const value3 = (GetPrimaryAppCommandModule).useIsPrimaryAppCommandUsableInAppDM({context: context,
applicationId: application.id, botUserId: botUserId});
const value4 = (importDefault(8869) /* metro dependency 8869: useIsAppDM */)(context.type !== 'channel' ? undefined : context.channel);
let value = CanLaunchFrameModule;
value = value.canLaunchFrame(application);
if (value) {
r0 = !value;
} else {
r1 = value3 && botUserId != null;
r1 = r1 && !value4;
r0 = r1;
}
return r0;
}
}
global.__d(_fun89539, 11683, [10657, 8869, 8045, 2]) /* metro module 11683, dependencies: [10657, 8869, 8045, 2] */;