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

30 lines
792 B
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 10717
// Function ID: 10718
2026-07-20 16:05:17 +00:00
// Name: useCurrentEmbeddedApplication
2026-08-08 06:10:11 +00:00
// Dependencies: [32, 10718, 5734, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-08 06:10:11 +00:00
// Module 10717 (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-08-08 06:10:11 +00:00
const tmp = importDefault(10718)();
2026-07-20 16:05:17 +00:00
if (null == tmp) {
let items = [];
} else {
items = [tmp.applicationId];
}
2026-08-08 06:10:11 +00:00
const first = callback(importDefault(5734)(items, flag), 1)[0];
2026-07-29 08:29:29 +00:00
return first;
2026-07-20 16:05:17 +00:00
};