31 lines
1.8 KiB
TypeScript
31 lines
1.8 KiB
TypeScript
/* Metro module 13704; source: modules/guild_role_subscriptions/useEmojiByIdOrName.tsx; dependencies: [6540, 566, 2] */
|
|
function _fun104730(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13901:6, offset: 0x0229f130, size: 120 bytes, params: 8, frame: 19
|
|
let env0_0 = require;
|
|
const closure = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
return require(dependencyMap[1]).useStateFromStores([EmojiStore], _fun104732, [a0, a1]);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const emojiStore = importDefault(6540) /* metro dependency 6540: EmojiStore */;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_role_subscriptions/useEmojiByIdOrName.tsx');
|
|
exports.default = closure;
|
|
exports.useEmojiByIdOrName = closure;
|
|
}
|
|
|
|
function useEmojiByIdOrName(a0, a1) { // fn#104731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13901:106, offset: 0x0229f1a8, size: 86 bytes, params: 3, frame: 17
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return (require(566) /* metro dependency 566: flux */).useStateFromStores([EmojiStore], _fun104732, [a0, a1]);
|
|
}
|
|
|
|
function _fun104732() { // fn#104732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13901:178, offset: 0x0229f1fe, size: 73 bytes, params: 1, frame: 13
|
|
if (require == null) {
|
|
return null;
|
|
}
|
|
const disambiguatedEmojiContext = EmojiStore.getDisambiguatedEmojiContext(env0_0);
|
|
return disambiguatedEmojiContext.getById(require) ?? disambiguatedEmojiContext.getByName(require);
|
|
}
|
|
|