Update EmojiPickerDialog.tsx

This commit is contained in:
Hristo Nedelkov 2023-08-22 14:05:12 +03:00
parent 2600a2cefb
commit 415afe9e7f
1 changed files with 2 additions and 4 deletions

View File

@ -2,25 +2,23 @@ import EmojiPicker, {
EmojiStyle,
Theme,
EmojiClickData,
Emoji,
SuggestionMode,
Categories,
} from 'emoji-picker-react'
import { useState } from 'react'
import { Stack, XStack } from 'tamagui'
import { Stack } from 'tamagui'
type EmojiStyleType = 'FACEBOOK' | 'APPLE' | 'GOOGLE' | 'TWITTER' | 'NATIVE'
function EmojiPickerDialog({ emojiStyle }: { emojiStyle: EmojiStyleType }) {
const [selectedEmoji, setSelectedEmoji] = useState<string>('')
//we can set
function onClick(emojiData: EmojiClickData) {
setSelectedEmoji(emojiData.unified)
}
return (
<Stack position="absolute" zIndex={1} left={120}>
{/* <XStack>
Your selected Emoji is:
{selectedEmoji ? (