28 lines
568 B
TypeScript
28 lines
568 B
TypeScript
// Metro module 15191 (f15192).
|
|
import { intl, t } from "../../../intl/index.native";
|
|
export function getChannelSubtitleData(a0) {
|
|
if (a0 == null) {
|
|
return null;
|
|
}
|
|
const type = a0.type;
|
|
if (type !== "embedded-activities" && type !== "event") {
|
|
if (type === "go-live") {
|
|
return {
|
|
subtitle: intl.string(t.Pa817q),
|
|
type: a0.type
|
|
};
|
|
}
|
|
if (type === "voice") {
|
|
return {
|
|
subtitle: a0.text,
|
|
type: a0.type
|
|
};
|
|
}
|
|
return void 0;
|
|
}
|
|
return {
|
|
subtitle: a0.name,
|
|
type: a0.type
|
|
};
|
|
}
|