Files
discord-decomp/sources/modules/emoji_picker/hooks/useTopAndNewlyAddedEmojis.tsx
T
2026-07-27 16:20:00 +03:00

39 lines
2.5 KiB
TypeScript

/* Metro module 8537; source: modules/emoji_picker/hooks/useTopAndNewlyAddedEmojis.tsx; dependencies: [6540, 1881, 632, 2] */
function _fun67694(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8722:6, offset: 0x01c2d8f7, size: 161 bytes, params: 8, frame: 19
let env0_0 = require;
const closure = getTopAndNewlyAddedEmojis;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const emojiStore = importDefault(6540) /* metro dependency 6540: EmojiStore */;
const env0_3 = (require(1881) /* metro dependency 1881: EmojiConstants */).EmojiIntention;
const env0_4 = [];
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emoji_picker/hooks/useTopAndNewlyAddedEmojis.tsx');
exports.default = function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
return require(dependencyMap[2]).useStateFromStoresObject([EmojiStore], _fun67697, [a0, a1]);
};
exports.getTopAndNewlyAddedEmojis = closure;
}
function getTopAndNewlyAddedEmojis({emojiStoreInstance = EmojiStore, guildId, pickerIntention}) { // fn#67695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8722:136, offset: 0x01c2d998, size: 116 bytes, params: 2, frame: 15
const object2 = {};
let REACTION = EmojiIntention.REACTION;
object2.topEmojis = pickerIntention !== REACTION ? emojiStoreInstance.getTopEmoji(guildId) : env0_4;
REACTION = EmojiIntention.REACTION;
object2.newlyAddedEmojis = pickerIntention !== REACTION ? emojiStoreInstance.getNewlyAddedEmoji(guildId) : env0_4;
return object2;
}
function useTopAndNewlyAddedEmojis(a0, a1) { // fn#67696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8722:435, offset: 0x01c2da0c, size: 87 bytes, params: 3, frame: 17
const env0_0 = a0;
const env0_1 = a1;
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStoresObject([EmojiStore],
_fun67697, [a0, a1]);
}
function _fun67697() { // fn#67697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8722:520, offset: 0x01c2da63, size: 47 bytes, params: 1, frame: 12
return getTopAndNewlyAddedEmojis({emojiStoreInstance: EmojiStore, guildId: env0_0, pickerIntention: require});
}