2023-09-21 10:07:30 +00:00
|
|
|
import EmojiPickerOriginal from "@emoji-mart/react";
|
|
|
|
|
|
|
|
type Emoji = {
|
|
|
|
emoticons: string[];
|
|
|
|
id: string;
|
|
|
|
keywords: string[];
|
|
|
|
name: string;
|
|
|
|
native: string;
|
|
|
|
shortcodes: string;
|
|
|
|
unified: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
type EmojiPickerProps = {
|
|
|
|
onEmojiSelect: (emoji: Emoji) => void;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const EmojiPicker = ({ onEmojiSelect }: EmojiPickerProps) => (
|
2023-09-21 11:37:10 +00:00
|
|
|
<EmojiPickerOriginal onEmojiSelect={onEmojiSelect} theme="light" />
|
2023-09-21 10:07:30 +00:00
|
|
|
);
|