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

28 lines
944 B
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 12903
// Function ID: 100255
2026-07-20 16:05:17 +00:00
// Name: getTitleFromPickedStreamContent
2026-07-23 10:11:24 +00:00
// Dependencies: [1212, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 12903 (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-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
joined = intl.string(require(1212) /* getSystemLocale */.t.R4wpLN);
2026-07-20 16:05:17 +00:00
}
}
return joined;
};