decord/source/modules/app_dms/useShowTryItOutButtonInAppLauncher.tsx

36 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 11258
// Function ID: 87529
2026-07-20 16:05:17 +00:00
// Name: useShowTryItOutButtonInAppLauncher
2026-07-25 08:10:48 +00:00
// Dependencies: [11232, 11259, 10442, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 11258 (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-07-25 08:10:48 +00:00
let obj = require(11232) /* _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-25 08:10:48 +00:00
const tmp2 = importDefault(11259);
const tmp2Result = importDefault(11259)(channel);
let tmp5 = !require(10442) /* canLaunchFrame */.canLaunchFrame(application);
2026-07-20 16:05:17 +00:00
if (tmp5) {
if (isPrimaryAppCommandUsableInAppDM) {
isPrimaryAppCommandUsableInAppDM = null != botUserId;
}
if (isPrimaryAppCommandUsableInAppDM) {
isPrimaryAppCommandUsableInAppDM = !tmp2Result;
}
tmp5 = isPrimaryAppCommandUsableInAppDM;
}
return tmp5;
};