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

25 lines
758 B
TypeScript
Raw Permalink Normal View History

2026-10-06 22:12:49 +00:00
// Module ID: 7546
// Function ID: 7547
// Name: MarkupRulesUtils
// Dependencies: [2]
// Exports: isStaticRouteIconType, smartOutput
2026-10-06 22:12:49 +00:00
// Module 7546 (MarkupRulesUtils)
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/markup/MarkupRulesUtils.tsx");
export const smartOutput = function smartOutput(node, output, state) {
if (typeof node.content !== "string") {
2026-10-06 22:12:49 +00:00
let content;
if (undefined !== node.content) {
2026-10-06 22:12:49 +00:00
content = output(node.content, state);
}
return content;
}
content = node.content;
};
export function isStaticRouteIconType(channelId) {
2026-10-06 22:12:49 +00:00
return "home" === channelId || "browse" === channelId || "customize" === channelId || "guide" === channelId || "linked-roles" === channelId;
}