// Module ID: 11267 // Function ID: 87633 // Name: useShowTryItOutButtonInAppLauncher // Dependencies: [10830, 11268, 10482, 2] // Exports: default // Module 11267 (useShowTryItOutButtonInAppLauncher) const result = require("canLaunchFrame").fileFinishedImporting("modules/app_dms/useShowTryItOutButtonInAppLauncher.tsx"); export default function useShowTryItOutButtonInAppLauncher(arg0) { let application; let botUserId; let context; ({ context, application, botUserId } = arg0); let obj = require(10830) /* _getPrimaryAppCommand */; obj = { context, applicationId: application.id, botUserId }; let isPrimaryAppCommandUsableInAppDM = obj.useIsPrimaryAppCommandUsableInAppDM(obj); let channel; if ("channel" === context.type) { channel = context.channel; } const tmp2 = importDefault(11268); const tmp2Result = importDefault(11268)(channel); let tmp5 = !require(10482) /* canLaunchFrame */.canLaunchFrame(application); if (tmp5) { if (isPrimaryAppCommandUsableInAppDM) { isPrimaryAppCommandUsableInAppDM = null != botUserId; } if (isPrimaryAppCommandUsableInAppDM) { isPrimaryAppCommandUsableInAppDM = !tmp2Result; } tmp5 = isPrimaryAppCommandUsableInAppDM; } return tmp5; };