1 import { Component } from "inferno";
2 import { getEmojiMart } from "../../utils";
4 interface EmojiMartProps {
5 onEmojiClick?(val: any): any;
9 export class EmojiMart extends Component<EmojiMartProps> {
10 constructor(props: any, context: any) {
11 super(props, context);
12 this.handleEmojiClick = this.handleEmojiClick.bind(this);
15 const div: any = document.getElementById("emoji-picker");
18 getEmojiMart(this.handleEmojiClick, this.props.pickerOptions)
24 return <div id="emoji-picker"></div>;
27 handleEmojiClick(e: any) {
28 this.props.onEmojiClick?.(e);