- EmojiMenu
-
- Description
- {componentData.description}
-
-
-
- Examples
-
- {}}
- style={style.emojiMenu}
- />
-
-
-
-
- );
-};
+class EmojiMenuDoc extends Component {
+ static createMarkup = text => ({
+ __html: emojione.toImage(text)
+ })
+
+ constructor() {
+ super();
+
+ this.state = {
+ open: false,
+ emoji: ''
+ };
+ }
+
+ toggleMenu = () => this.setState({ open: !this.state.open })
+
+ sendEmoji = ({ shortname }) => this.setState({ emoji: shortname })
+
+ render() {
+ const componentData = _.find(components, component => component.displayName === 'EmojiMenu');
+ const style = {
+ paper: {
+ display: 'flex',
+ flexWrap: 'wrap',
+ alignItems: 'center',
+ margin: 0,
+ padding: '20px'
+ },
+ emojiMenu: { margin: '10px' }
+ };
+
+ return (
+