import type { EmojiCategoryList } from '@udecode/plate-emoji'; import type { UseEmojiPickerType } from '@udecode/plate-emoji/react'; import { cn } from '@udecode/cn'; import { Button } from './button'; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from './tooltip'; export type EmojiPickerNavigationProps = { onClick: (id: EmojiCategoryList) => void; } & Pick< UseEmojiPickerType, 'emojiLibrary' | 'focusedCategory' | 'i18n' | 'icons' >; // KEEP: This is for the animated idicator bar under the icon - Opt in if needed // const getBarProperty = ( // emojiLibrary: IEmojiFloatingLibrary, // focusedCategory?: EmojiCategoryList // ) => { // let width = 0; // let position = 0; // if (focusedCategory) { // width = 100 / emojiLibrary.getGrid().size; // position = focusedCategory // ? emojiLibrary.indexOf(focusedCategory) * 100 // : 0; // } // return { position, width }; // }; export function EmojiPickerNavigation({ emojiLibrary, focusedCategory, i18n, icons, onClick, }: EmojiPickerNavigationProps) { // KEEP: This is for the animated idicator bar under the icon - Opt in if needed // const { position, width } = useMemo( // () => getBarProperty(emojiLibrary, focusedCategory), // [emojiLibrary, focusedCategory] // ); return ( ); }