feat: edit/delete a Message (#30)

Co-authored-by: Walidoux <ma.walidkorchi@icloud.com>
This commit is contained in:
Divlo
2022-08-29 21:24:38 +02:00
committed by GitHub
parent 38e227a9d4
commit 91a87199c4
6 changed files with 119 additions and 6 deletions

View File

@ -5,17 +5,18 @@ import { EMOJI_SET } from './emojiPlugin'
export interface EmojiProps {
value: string
size: number
tooltip?: boolean
}
export const Emoji: React.FC<EmojiProps> = (props) => {
const { value, size } = props
const { value, size, tooltip = false } = props
return (
<EmojiMart
set={EMOJI_SET}
emoji={value}
size={size}
tooltip
tooltip={tooltip}
fallback={() => {
return <>{value}</>
}}