import * as React from 'react'; import { CategoryConfig } from '../../config/categoryConfig'; import { useEmojiStyleConfig, useGetEmojiUrlConfig, useSuggestedEmojisModeConfig, } from '../../config/useConfig'; import { emojiByUnified } from '../../dataUtils/emojiSelectors'; import { getsuggested } from '../../dataUtils/suggested'; import { useUpdateSuggested } from '../context/PickerContext'; import { ClickableEmoji } from '../emoji/Emoji'; import { EmojiCategory } from './EmojiCategory'; type Props = Readonly<{ categoryConfig: CategoryConfig; }>; export function Suggested({ categoryConfig }: Props) { const [suggestedUpdated] = useUpdateSuggested(); const suggestedEmojisModeConfig = useSuggestedEmojisModeConfig(); const getEmojiUrl = useGetEmojiUrlConfig(); const suggested = React.useMemo( () => getsuggested(suggestedEmojisModeConfig) ?? [], // eslint-disable-next-line react-hooks/exhaustive-deps [suggestedUpdated, suggestedEmojisModeConfig] ); const emojiStyle = useEmojiStyleConfig(); return ( ); }