20 lines
407 B
TypeScript
20 lines
407 B
TypeScript
![]() |
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) => (
|
||
|
<EmojiPickerOriginal onEmojiSelect={onEmojiSelect} />
|
||
|
);
|