decord/source/modules/markup/native/MarkupInlineChannelMentionRules.tsx

99 lines
4.1 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 10297
// Function ID: 79526
2026-07-20 16:05:17 +00:00
// Name: createInlineChannelReact
2026-07-24 07:16:23 +00:00
// Dependencies: [31, 33, 10001, 1273, 1327, 2]
2026-07-20 16:05:17 +00:00
// Exports: createInlineChannelReact, inlineChannelMentionReact
2026-07-24 07:16:23 +00:00
// Module 10297 (createInlineChannelReact)
2026-07-23 10:11:24 +00:00
import "result";
import { jsxs } from "jsxProd";
const require = arg1;
2026-07-20 16:05:17 +00:00
function createInlineChannelReact(arg0) {
let str = arg0;
if (arg0 === undefined) {
str = "\u{1F4AC}";
}
return (iconType, output, key) => {
iconType = iconType.iconType;
if ("text" !== iconType) {
if ("text-nsfw" !== iconType) {
if ("text-spoiler" !== iconType) {
if ("announcement" !== iconType) {
if ("announcement-nsfw" !== iconType) {
if ("announcement-spoiler" !== iconType) {
if ("forum" !== iconType) {
if ("forum-nsfw" !== iconType) {
if ("forum-spoiler" !== iconType) {
if ("media" !== iconType) {
if ("media-nsfw" !== iconType) {
if ("thread" !== iconType) {
if ("post" !== iconType) {
if ("message" === iconType) {
let str2 = str;
} else if ("voice" !== iconType) {
if ("voice-locked" !== iconType) {
if ("voice-nsfw" !== iconType) {
if ("voice-spoiler" !== iconType) {
if ("stage" !== iconType) {
if ("stage-locked" !== iconType) {
if ("locked" !== iconType) {
if ("guide" !== iconType) {
if ("home" !== iconType) {
if ("browse" !== iconType) {
if ("customize" !== iconType) {
if ("linked-roles" !== iconType) {
2026-07-23 10:11:24 +00:00
let obj = str(outer1_1[4]);
2026-07-20 16:05:17 +00:00
obj.assertNever(iconType);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
str2 = "\"";
}
obj = {};
2026-07-23 10:11:24 +00:00
const items = [str2, str(outer1_1[2]).smartOutput(iconType, output, key), str3];
2026-07-20 16:05:17 +00:00
obj.children = items;
2026-07-23 10:11:24 +00:00
return outer1_2(str(outer1_1[3]).LegacyText, obj, key.key);
2026-07-20 16:05:17 +00:00
}
}
}
}
}
}
}
}
}
}
str2 = "#";
};
}
const inlineChannelReact = createInlineChannelReact();
2026-07-23 10:11:24 +00:00
const result = require("smartOutput").fileFinishedImporting("modules/markup/native/MarkupInlineChannelMentionRules.tsx");
2026-07-20 16:05:17 +00:00
export const inlineChannelMentionReact = function inlineChannelMentionReact(inContent, output, key) {
if (null == inContent.inContent) {
2026-07-24 07:16:23 +00:00
let smartOutputResult = require(10001) /* smartOutput */.smartOutput(inContent, output, key);
const obj3 = require(10001) /* smartOutput */;
2026-07-20 16:05:17 +00:00
} else {
const obj = {};
2026-07-24 07:16:23 +00:00
const items = [output(inContent.inContent, key), " \u203A ", require(10001) /* smartOutput */.smartOutput(inContent, output, key)];
2026-07-20 16:05:17 +00:00
obj.children = items;
2026-07-23 10:11:24 +00:00
smartOutputResult = jsxs(require(1273) /* Button */.LegacyText, {}, key.key);
2026-07-24 07:16:23 +00:00
const obj2 = require(10001) /* smartOutput */;
2026-07-20 16:05:17 +00:00
}
return smartOutputResult;
};
export { createInlineChannelReact };
export { inlineChannelReact };