decord/source/modules/activities/utils/useCurrentEmbeddedApplication.tsx

34 lines
848 B
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 10539
// Function ID: 81526
2026-07-20 16:05:17 +00:00
// Name: useCurrentEmbeddedApplication
2026-07-25 08:10:48 +00:00
// Dependencies: [57, 10540, 5468, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 10539 (useCurrentEmbeddedApplication)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
const result = require("useGetOrFetchApplications").fileFinishedImporting("modules/activities/utils/useCurrentEmbeddedApplication.tsx");
2026-07-20 16:05:17 +00:00
export default function useCurrentEmbeddedApplication() {
let obj = arg0;
if (arg0 === undefined) {
obj = {};
}
let flag = obj.fetchesApplication;
if (flag === undefined) {
flag = true;
}
2026-07-25 08:10:48 +00:00
const tmp = importDefault(10540)();
2026-07-20 16:05:17 +00:00
if (null == tmp) {
let items = [];
} else {
items = [tmp.applicationId];
}
2026-07-24 07:16:23 +00:00
const first = callback(importDefault(5468)(items, flag), 1)[0];
2026-07-20 16:05:17 +00:00
let tmp4;
if (null != first) {
tmp4 = first;
}
return tmp4;
};