decord/source/modules/app_dms/useShowTryItOutButtonInAppLauncher.tsx
2026-07-20 17:37:48 +00:00

36 lines
1.2 KiB
TypeScript

// Module ID: 11250
// Function ID: 87535
// Name: useShowTryItOutButtonInAppLauncher
// Dependencies: []
// Exports: default
// Module 11250 (useShowTryItOutButtonInAppLauncher)
const _module = require(dependencyMap[3]);
const result = _module.fileFinishedImporting("modules/app_dms/useShowTryItOutButtonInAppLauncher.tsx");
export default function useShowTryItOutButtonInAppLauncher(arg0) {
let application;
let botUserId;
let context;
({ context, application, botUserId } = arg0);
let obj = require(dependencyMap[0]);
obj = { context, applicationId: application.id, botUserId };
let isPrimaryAppCommandUsableInAppDM = obj.useIsPrimaryAppCommandUsableInAppDM(obj);
let channel;
if ("channel" === context.type) {
channel = context.channel;
}
const tmp2 = importDefault(dependencyMap[1]);
const tmp2Result = importDefault(dependencyMap[1])(channel);
let tmp5 = !require(dependencyMap[2]).canLaunchFrame(application);
if (tmp5) {
if (isPrimaryAppCommandUsableInAppDM) {
isPrimaryAppCommandUsableInAppDM = null != botUserId;
}
if (isPrimaryAppCommandUsableInAppDM) {
isPrimaryAppCommandUsableInAppDM = !tmp2Result;
}
tmp5 = isPrimaryAppCommandUsableInAppDM;
}
return tmp5;
};