Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
33 lines
1,009 B
TypeScript
33 lines
1,009 B
TypeScript
// Module ID: 15273
|
|
// Function ID: 15274
|
|
// Name: useEmojiByIdOrName
|
|
// Dependencies: [5473, 504, 2]
|
|
// Exports: default, useEmojiByIdOrName
|
|
|
|
// Module 15273 (useEmojiByIdOrName)
|
|
import EmojiStore from "EmojiStore" /* 5473 */;
|
|
|
|
const require = fn;
|
|
function useEmojiByIdOrName(guildId, emojiId) {
|
|
_require = guildId;
|
|
dependencyMap = emojiId;
|
|
const items = [EmojiStore];
|
|
const items1 = [guildId, emojiId];
|
|
return require("initialize").useStateFromStores(items, () => {
|
|
if (null == closure_1) {
|
|
return null;
|
|
} else {
|
|
const disambiguatedEmojiContext = EmojiStore.getDisambiguatedEmojiContext(closure_0);
|
|
let byId = disambiguatedEmojiContext.getById(tmp);
|
|
if (byId == null) {
|
|
byId = disambiguatedEmojiContext.getByName(tmp);
|
|
}
|
|
return byId;
|
|
}
|
|
}, items1);
|
|
}
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/guild_role_subscriptions/useEmojiByIdOrName.tsx");
|
|
|
|
export default useEmojiByIdOrName;
|
|
export { useEmojiByIdOrName };
|