diff --git a/bigbluebutton-html5/imports/ui/components/emoji-picker/reactions-picker/component.jsx b/bigbluebutton-html5/imports/ui/components/emoji-picker/reactions-picker/component.jsx deleted file mode 100644 index 07b99610be..0000000000 --- a/bigbluebutton-html5/imports/ui/components/emoji-picker/reactions-picker/component.jsx +++ /dev/null @@ -1,64 +0,0 @@ -import React, { useState } from 'react'; -import PropTypes from 'prop-types'; -import data from '@emoji-mart/data'; -import { init } from 'emoji-mart'; -import Styled from './styles'; - -const DISABLED_INTERVAL = Meteor.settings.public.app.emojiRain.intervalEmojis; - -const propTypes = { - onEmojiSelect: PropTypes.func.isRequired, -}; - -const defaultProps = { -}; - -const emojisToInclude = [ - // reactions - '๐Ÿ˜„', '๐Ÿ˜…', '๐Ÿ˜‚', '๐Ÿ˜‰', '๐Ÿ˜', '๐Ÿ˜œ', - '๐Ÿคช', '๐Ÿคจ', '๐Ÿ˜’', '๐Ÿ™„', '๐Ÿ˜ฌ', '๐Ÿ˜”', - '๐Ÿ˜ด', '๐Ÿ˜•', '๐Ÿ˜Ÿ', '๐Ÿ˜ฏ', '๐Ÿ˜ณ', '๐Ÿ˜ฐ', - '๐Ÿ˜ฅ', '๐Ÿ˜ญ', '๐Ÿ˜ฑ', '๐Ÿ˜ก', '๐Ÿ’€', '๐Ÿ’ฉ', - '๐Ÿคก', '๐Ÿ‘Œ', '๐Ÿ‘', '๐Ÿ‘Ž', '๐Ÿ‘Š', '๐Ÿ‘', - '๐Ÿ™Œ', '๐Ÿ™', '๐Ÿ’ช', '๐Ÿ‘€', 'โค๏ธ', '๐Ÿ’™', -]; - -const ReactionsPicker = (props) => { - const { - onEmojiSelect, - } = props; - - const [selected, setSelected] = useState(null); - - const onEmojiClick = (native) => { - onEmojiSelect({ native }); - setSelected(native); - - setTimeout(() => { - setSelected(null); - }, DISABLED_INTERVAL); - }; - - init({ data }); - - return ( - <> - {emojisToInclude.map((native) => ( - - !selected && onEmojiClick(native)} - /> - - ))} - - ); -}; - -ReactionsPicker.propTypes = propTypes; -ReactionsPicker.defaultProps = defaultProps; - -export default ReactionsPicker;