decord/source/modules/markup/MarkupRulesUtils.tsx

36 lines
873 B
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 9960
// Function ID: 76933
2026-07-20 16:05:17 +00:00
// Name: smartOutput
2026-07-21 06:55:02 +00:00
// Dependencies: [284214097]
2026-07-20 16:05:17 +00:00
// Exports: isStaticRouteIconType, smartOutput
2026-07-21 06:55:02 +00:00
// Module 9960 (smartOutput)
2026-07-20 16:05:17 +00:00
const _module = require(dependencyMap[0]);
const result = _module.fileFinishedImporting("modules/markup/MarkupRulesUtils.tsx");
export const smartOutput = function smartOutput(node, output, state) {
if ("string" !== typeof node.content) {
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;
}