decord/source/modules/app_dms/useShowTryItOutButtonInAppLauncher.tsx

38 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 11588
// Function ID: 11589
2026-07-20 16:05:17 +00:00
// Name: useShowTryItOutButtonInAppLauncher
2026-08-13 07:00:46 +00:00
// Dependencies: [10589, 11589, 10567, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-13 07:00:46 +00:00
// Module 11588 (useShowTryItOutButtonInAppLauncher)
2026-07-23 10:11:24 +00:00
const result = require("canLaunchFrame").fileFinishedImporting("modules/app_dms/useShowTryItOutButtonInAppLauncher.tsx");
2026-07-20 16:05:17 +00:00
export default function useShowTryItOutButtonInAppLauncher(arg0) {
let application;
let botUserId;
let context;
({ context, application, botUserId } = arg0);
2026-08-13 07:00:46 +00:00
let obj = require(10589) /* _getPrimaryAppCommand */;
2026-07-20 16:05:17 +00:00
obj = { context, applicationId: application.id, botUserId };
let isPrimaryAppCommandUsableInAppDM = obj.useIsPrimaryAppCommandUsableInAppDM(obj);
let channel;
if ("channel" === context.type) {
channel = context.channel;
}
2026-07-29 08:29:29 +00:00
const tmp = require;
2026-08-13 07:00:46 +00:00
const tmp4 = importDefault(11589);
const tmp4Result = importDefault(11589)(channel);
const canLaunchFrameResult = tmp(10567).canLaunchFrame(application);
2026-07-29 08:29:29 +00:00
let tmp8 = !canLaunchFrameResult;
if (!canLaunchFrameResult) {
2026-07-20 16:05:17 +00:00
if (isPrimaryAppCommandUsableInAppDM) {
isPrimaryAppCommandUsableInAppDM = null != botUserId;
}
if (isPrimaryAppCommandUsableInAppDM) {
2026-07-29 08:29:29 +00:00
isPrimaryAppCommandUsableInAppDM = !tmp4Result;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp8 = isPrimaryAppCommandUsableInAppDM;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp8;
2026-07-20 16:05:17 +00:00
};