Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const EmojiSuggestions: FunctionComponent = ({
data,
highlightedIndex,
command,
}) => {
const { sxx } = useRemirrorTheme();
const { view, getPositionerProps } = useRemirrorContext();
const { getMenuProps, getItemProps, itemHighlightedAtIndex, hoveredIndex } = useMultishift({
highlightedIndexes: [highlightedIndex],
type: Type.ControlledMenu,
items: data,
isOpen: true,
});
const positionerProps = getPositionerProps({
...popupMenuPositioner,
positionerId: 'emojiPopupMenu',
refKey: 'ref',
});
const { top, left, ref } = positionerProps;
return (