1 import { Component } from "inferno";
2 import { getEmojiMart } from "../../utils";
5 interface EmojiMartProps {
6 onEmojiClick?(val: any): any;
10 export class EmojiMart extends Component<
13 constructor(props: any, context: any) {
14 super(props, context);
15 this.handleEmojiClick = this.handleEmojiClick.bind(this);
18 let div: any = document.getElementById("emoji-picker");
20 div.appendChild(getEmojiMart(this.handleEmojiClick, this.props.pickerOptions));
26 <div id="emoji-picker"></div>
30 handleEmojiClick(e: any) {
31 this.props.onEmojiClick?.(e);