decord/source/modules/guild_role_subscriptions/useEmojiByIdOrName.tsx

34 lines
1,009 B
TypeScript
Raw Normal View History

// Module ID: 15273
// Function ID: 15274
2026-07-20 16:05:17 +00:00
// Name: useEmojiByIdOrName
// Dependencies: [5473, 504, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, useEmojiByIdOrName
// Module 15273 (useEmojiByIdOrName)
import EmojiStore from "EmojiStore" /* 5473 */;
2026-07-23 10:11:24 +00:00
const require = fn;
2026-07-20 16:05:17 +00:00
function useEmojiByIdOrName(guildId, emojiId) {
_require = guildId;
2026-08-24 06:08:38 +00:00
dependencyMap = emojiId;
const items = [EmojiStore];
2026-07-20 16:05:17 +00:00
const items1 = [guildId, emojiId];
return require("initialize").useStateFromStores(items, () => {
2026-07-23 10:11:24 +00:00
if (null == closure_1) {
2026-07-20 16:05:17 +00:00
return null;
} else {
const disambiguatedEmojiContext = EmojiStore.getDisambiguatedEmojiContext(closure_0);
2026-07-29 08:29:29 +00:00
let byId = disambiguatedEmojiContext.getById(tmp);
if (byId == null) {
byId = disambiguatedEmojiContext.getByName(tmp);
2026-07-20 16:05:17 +00:00
}
return byId;
}
}, items1);
}
const size = fn(2);
const result = size.fileFinishedImporting("modules/guild_role_subscriptions/useEmojiByIdOrName.tsx");
2026-07-20 16:05:17 +00:00
export default useEmojiByIdOrName;
export { useEmojiByIdOrName };