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

31 lines
945 B
TypeScript
Raw Normal View History

// Module ID: 13936
// Function ID: 13937
2026-07-20 16:05:17 +00:00
// Name: getTitleFromPickedStreamContent
// Dependencies: [1115, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 13936 (getTitleFromPickedStreamContent)
import util from "util" /* 1115 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.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) {
const intl = util.intl;
joined = intl.string(util.t.R4wpLN);
2026-07-20 16:05:17 +00:00
}
}
return joined;
};