decord/source/modules/markup/StaticRouteRendering.tsx

59 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 5108
// Function ID: 5109
// Name: StaticRouteRendering
// Dependencies: [2016, 1115, 2]
2026-07-20 16:05:17 +00:00
// Exports: staticRouteToItemString, staticRouteToTranslation
// Module 5108 (StaticRouteRendering)
import util from "util" /* 1115 */;
import GuildRoleStore from "GuildRoleStore" /* 2016 */;
2026-07-23 10:11:24 +00:00
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/markup/StaticRouteRendering.tsx");
2026-07-20 16:05:17 +00:00
export const staticRouteToTranslation = function staticRouteToTranslation(arg0) {
if ("home" !== arg0) {
if ("guide" !== arg0) {
if ("browse" === arg0) {
const intl3 = util.intl;
return intl3.string(util.t.et6wav);
2026-07-20 16:05:17 +00:00
} else if ("customize" === arg0) {
const intl2 = util.intl;
return intl2.string(util.t.h9mGOP);
2026-07-20 16:05:17 +00:00
} else if ("linked-roles" === arg0) {
const intl = util.intl;
return intl.string(util.t.ghtnss);
2026-07-20 16:05:17 +00:00
} else {
return null;
}
}
}
const intl4 = util.intl;
return intl4.string(util.t.VbpLyU);
2026-07-20 16:05:17 +00:00
};
export const staticRouteToItemString = function staticRouteToItemString(arg0, arg1, id) {
if ("linked-roles" === arg0) {
if (null == id) {
return null;
} else {
const role = GuildRoleStore.getRole(id, arg1);
2026-07-20 16:05:17 +00:00
let name = null;
if (null != role) {
const tags = role.tags;
let guild_connections;
2026-07-29 08:29:29 +00:00
if (tags != null) {
2026-07-20 16:05:17 +00:00
guild_connections = tags.guild_connections;
}
name = null;
if (null === guild_connections) {
name = role.name;
}
}
return name;
}
} else {
return null;
}
};