decord/source/modules/launchpad/native/shared/ChannelTitle.tsx

52 lines
2 KiB
TypeScript
Raw Normal View History

// Module ID: 16871
// Function ID: 16872
// Name: ChannelTitle
// Dependencies: [19, 4820, 21, 4638, 576, 16867, 4634, 2]
2026-07-20 16:05:17 +00:00
// Module 16871 (ChannelTitle)
import nativeDefault from "native" /* 576 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const require = fn;
const UnreadSetting = fn(4820).UnreadSetting;
const jsx = fn(21).jsx;
const createStyles = fn(4638);
let closure_6 = createStyles.createStyleProperties({ muted: nativeDefault.colors.TEXT_MUTED, normal: nativeDefault.colors.REDESIGN_CHANNEL_NAME_MUTED_TEXT, unreadOrConnected: nativeDefault.colors.REDESIGN_CHANNEL_NAME_TEXT });
let obj = { muted: nativeDefault.colors.TEXT_MUTED, normal: nativeDefault.colors.REDESIGN_CHANNEL_NAME_MUTED_TEXT, unreadOrConnected: nativeDefault.colors.REDESIGN_CHANNEL_NAME_TEXT };
const size = fn(2);
const result = size.fileFinishedImporting("modules/launchpad/native/shared/ChannelTitle.tsx");
export default noop.memo(function ChannelTitle(unread) {
2026-07-20 16:05:17 +00:00
({ title, muted } = unread);
unread = unread.unread;
const resolvedUnreadSetting = unread.resolvedUnreadSetting;
const connected = unread.connected;
let tmp2 = closure_6();
const normal = tmp2;
2026-07-20 16:05:17 +00:00
const items = [unread, tmp2, connected, muted, resolvedUnreadSetting];
const memo = connected.useMemo(() => {
let color = normal.normal;
2026-07-20 16:05:17 +00:00
if (muted) {
2026-07-29 08:29:29 +00:00
color = tmp.muted;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
let tmp2 = unread;
2026-07-20 16:05:17 +00:00
if (unread) {
tmp2 = resolvedUnreadSetting === UnreadSetting.ALL_MESSAGES;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (!tmp2) {
tmp2 = connected;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (tmp2) {
color = tmp.unreadOrConnected;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
return { color, paddingRight: 4, flexShrink: 1 };
2026-07-20 16:05:17 +00:00
}, items);
2026-07-29 08:29:29 +00:00
const obj = { variant: unread(resolvedUnreadSetting[5])().channelName.text.variant, lineClamp: 1, maxFontSizeMultiplier: 1.75, style: memo, children: null };
if (title == null) {
title = "";
2026-07-20 16:05:17 +00:00
}
obj.children = title;
2026-07-29 08:29:29 +00:00
return jsx(muted(resolvedUnreadSetting[6]).Text, { variant: unread(resolvedUnreadSetting[5])().channelName.text.variant, lineClamp: 1, maxFontSizeMultiplier: 1.75, style: memo, children: null });
2026-07-20 16:05:17 +00:00
});