decord/source/modules/app_dms/useShowTryItOutButtonInAppLauncher.tsx

38 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-08-10 06:55:34 +00:00
// Module ID: 11532
// Function ID: 11533
2026-07-20 16:05:17 +00:00
// Name: useShowTryItOutButtonInAppLauncher
2026-08-10 06:55:34 +00:00
// Dependencies: [10617, 11533, 10595, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-10 06:55:34 +00:00
// Module 11532 (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-10 06:55:34 +00:00
let obj = require(10617) /* _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-10 06:55:34 +00:00
const tmp4 = importDefault(11533);
const tmp4Result = importDefault(11533)(channel);
const canLaunchFrameResult = tmp(10595).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
};