decord/source/modules/markup/MarkupRulesUtils.tsx
2026-08-08 06:10:11 +00:00

34 lines
828 B
TypeScript

// Module ID: 9553
// Function ID: 9554
// Name: smartOutput
// Dependencies: [2]
// Exports: isStaticRouteIconType, smartOutput
// Module 9553 (smartOutput)
const result = require("set").fileFinishedImporting("modules/markup/MarkupRulesUtils.tsx");
export const smartOutput = function smartOutput(node, output, state) {
if (typeof node.content !== "string") {
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;
}