decord/source/modules/guild_role_subscriptions/useEmojiByIdOrName.tsx

33 lines
1,013 B
TypeScript
Raw Normal View History

2026-08-06 08:05:19 +00:00
// Module ID: 14389
// Function ID: 14390
2026-07-20 16:05:17 +00:00
// Name: useEmojiByIdOrName
2026-08-06 08:05:19 +00:00
// Dependencies: [5158, 589, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, useEmojiByIdOrName
2026-08-06 08:05:19 +00:00
// Module 14389 (useEmojiByIdOrName)
2026-07-29 08:29:29 +00:00
import getEmojiToGroupId from "getEmojiToGroupId";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function useEmojiByIdOrName(guildId, emojiId) {
2026-07-23 10:11:24 +00:00
const _require = guildId;
2026-07-20 16:05:17 +00:00
const dependencyMap = emojiId;
2026-07-29 08:29:29 +00:00
const items = [getEmojiToGroupId];
2026-07-20 16:05:17 +00:00
const items1 = [guildId, emojiId];
2026-07-29 08:29:29 +00:00
return _require(589).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 {
2026-07-23 10:11:24 +00:00
const disambiguatedEmojiContext = outer1_2.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);
}
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/guild_role_subscriptions/useEmojiByIdOrName.tsx");
2026-07-20 16:05:17 +00:00
export default useEmojiByIdOrName;
export { useEmojiByIdOrName };