2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 8349
|
|
|
|
|
// Function ID: 8350
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: smartOutput
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: isStaticRouteIconType, smartOutput
|
|
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 8349 (smartOutput)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
|
|
|
|
|
|
|
|
|
const result = set.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;
|
|
|
|
|
}
|