2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 9344
|
|
|
|
|
// Function ID: 9345
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: useEmojiHotrail
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [19, 6768, 2]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: default, getEmojiHotrail
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 9344 (useEmojiHotrail)
|
|
|
|
|
import closure_0 from "noop" /* 19 */;
|
|
|
|
|
import { EMOJI_ROW_SIZE } from "EmojiCategoryTypes" /* 6768 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/emoji_picker/hooks/useEmojiHotrail.tsx");
|
|
|
|
|
|
|
|
|
|
export default function useEmojiHotrail(arg0) {
|
|
|
|
|
const React = arg0;
|
|
|
|
|
const items = [arg0];
|
|
|
|
|
return React.useMemo(() => {
|
2026-08-24 06:08:38 +00:00
|
|
|
({ topEmojis, newlyAddedEmojis, rowSize } = closure_0);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (rowSize === undefined) {
|
2026-08-24 06:08:38 +00:00
|
|
|
rowSize = closure_1_1;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
const substr = topEmojis.slice(0, rowSize - newlyAddedEmojis.length);
|
|
|
|
|
return { visibleTopEmojis: substr, visibleNewlyAddedEmojis: newlyAddedEmojis, allEmojis: substr.concat(newlyAddedEmojis) };
|
|
|
|
|
}, items);
|
|
|
|
|
};
|
|
|
|
|
export const getEmojiHotrail = function getEmojiHotrail(arg0) {
|
2026-07-20 16:05:17 +00:00
|
|
|
({ 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) };
|
|
|
|
|
};
|