2026-10-09 10:00:15 +00:00
|
|
|
// Module ID: 8109
|
|
|
|
|
// Function ID: 8110
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: MarkupRulesUtils
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: isStaticRouteIconType, smartOutput
|
|
|
|
|
|
2026-10-09 10:00:15 +00:00
|
|
|
// Module 8109 (MarkupRulesUtils)
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +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-10-03 08:58:59 +00:00
|
|
|
let content;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (undefined !== node.content) {
|
2026-10-03 08:58:59 +00:00
|
|
|
content = output(node.content, state);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return content;
|
|
|
|
|
}
|
|
|
|
|
content = node.content;
|
|
|
|
|
};
|
|
|
|
|
export function isStaticRouteIconType(channelId) {
|
2026-10-03 08:58:59 +00:00
|
|
|
return "home" === channelId || "browse" === channelId || "customize" === channelId || "guide" === channelId || "linked-roles" === channelId;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|