Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
// Module ID: 10410
|
|
// Function ID: 10411
|
|
// Name: useEmojiHotrail
|
|
// Dependencies: [19, 5544, 2]
|
|
// Exports: default, getEmojiHotrail
|
|
|
|
// Module 10410 (useEmojiHotrail)
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const EMOJI_ROW_SIZE = fn(5544).EMOJI_ROW_SIZE;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/emoji_picker/hooks/useEmojiHotrail.tsx");
|
|
|
|
export default function useEmojiHotrail(arg0) {
|
|
noop = arg0;
|
|
const items = [arg0];
|
|
return noop.useMemo(() => {
|
|
({ topEmojis, newlyAddedEmojis, rowSize } = closure_0);
|
|
if (rowSize === undefined) {
|
|
rowSize = EMOJI_ROW_SIZE;
|
|
}
|
|
const substr = topEmojis.slice(0, rowSize - newlyAddedEmojis.length);
|
|
return { visibleTopEmojis: substr, visibleNewlyAddedEmojis: newlyAddedEmojis, allEmojis: substr.concat(newlyAddedEmojis) };
|
|
}, items);
|
|
};
|
|
export const getEmojiHotrail = function getEmojiHotrail(arg0) {
|
|
({ topEmojis, newlyAddedEmojis, rowSize } = arg0);
|
|
if (rowSize === undefined) {
|
|
rowSize = EMOJI_ROW_SIZE;
|
|
}
|
|
const substr = topEmojis.slice(0, rowSize - newlyAddedEmojis.length);
|
|
return { visibleTopEmojis: substr, visibleNewlyAddedEmojis: newlyAddedEmojis, allEmojis: substr.concat(newlyAddedEmojis) };
|
|
};
|