decord/source/modules/go_live/utils/getTitleFromPickedStreamContent.tsx

28 lines
943 B
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 13058
// Function ID: 13059
2026-07-20 16:05:17 +00:00
// Name: getTitleFromPickedStreamContent
2026-07-29 08:29:29 +00:00
// Dependencies: [1236, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 13058 (getTitleFromPickedStreamContent)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/go_live/utils/getTitleFromPickedStreamContent.tsx");
2026-07-20 16:05:17 +00:00
export default function getTitleFromPickedStreamContent(windows) {
if (windows.windows.length > 0) {
windows = windows.windows;
const mapped = windows.map((title) => title.title);
let joined = mapped.join(", ");
} else if (windows.applications.length > 0) {
const applications = windows.applications;
const mapped1 = applications.map((name) => name.name);
joined = mapped1.join(", ");
} else {
joined = null;
if (windows.displays.length > 0) {
2026-07-29 08:29:29 +00:00
const intl = require(1236) /* getSystemLocale */.intl;
joined = intl.string(require(1236) /* getSystemLocale */.t.R4wpLN);
2026-07-20 16:05:17 +00:00
}
}
return joined;
};