import classNames from 'classnames'; import React from 'react'; import { Emoji, HStack } from 'soapbox/components/ui'; interface IEmojiButton { emoji: string, onClick: React.EventHandler, className?: string, tabIndex?: number, } const EmojiButton: React.FC = ({ emoji, className, onClick, tabIndex }): JSX.Element => { return ( ); }; interface IEmojiSelector { emojis: Iterable, onReact: (emoji: string) => void, visible?: boolean, focused?: boolean, } const EmojiSelector: React.FC = ({ emojis, onReact, visible = false, focused = false }): JSX.Element => { const handleReact = (emoji: string): React.EventHandler => { return (e) => { onReact(emoji); e.preventDefault(); e.stopPropagation(); }; }; return ( {Array.from(emojis).map((emoji, i) => ( ))} ); }; export default EmojiSelector;