2023-09-21 10:07:30 +00:00
|
|
|
import EmojiPickerOriginal from "@emoji-mart/react";
|
2023-09-28 09:35:25 +00:00
|
|
|
import { Box } from "@mui/material";
|
2023-09-21 10:07:30 +00:00
|
|
|
|
|
|
|
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-28 09:35:25 +00:00
|
|
|
<Box sx={{ minWidth: "352px" }}>
|
|
|
|
<EmojiPickerOriginal
|
|
|
|
onEmojiSelect={onEmojiSelect}
|
|
|
|
theme="light"
|
|
|
|
locale="ru"
|
|
|
|
/>
|
|
|
|
</Box>
|
2023-09-21 10:07:30 +00:00
|
|
|
);
|