decord/alpha/source/modules/markup/MarkupRulesUtils.tsx

37 lines
866 B
TypeScript
Raw Normal View History

// Module ID: 8358
// Function ID: 8359
// Name: MarkupRulesUtils
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: isStaticRouteIconType, smartOutput
// Module 8358 (MarkupRulesUtils)
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("modules/markup/MarkupRulesUtils.tsx");
2026-07-20 16:05:17 +00:00
export const smartOutput = function smartOutput(node, output, state) {
2026-08-04 21:03:28 +00:00
if (typeof node.content !== "string") {
2026-07-20 16:05:17 +00:00
if (undefined !== node.content) {
let content = output(node.content, state);
}
return content;
}
content = node.content;
};
export function isStaticRouteIconType(channelId) {
let tmp = "home" === channelId;
if (!tmp) {
tmp = "browse" === channelId;
}
if (!tmp) {
tmp = "customize" === channelId;
}
if (!tmp) {
tmp = "guide" === channelId;
}
if (!tmp) {
tmp = "linked-roles" === channelId;
}
return tmp;
}