import React from 'react'; import { Dimensions } from 'react-native'; import { CometChat } from '@cometchat/chat-sdk-react-native'; import { CometChatBottomSheet } from '../../shared/views'; import { CometChatEmojiKeyboard } from '../../shared/views/CometChatEmojiKeyboard'; import { CometChatReactionList } from '../../shared/views/CometChatReactionList'; interface ReactionModalsProps { showEmojiKeyboard: boolean; showReactionList: boolean; selectedMessage: CometChat.BaseMessage | null; selectedEmoji: string | undefined; reactionsRequestBuilder?: CometChat.ReactionsRequestBuilder; onReactionListItemPress?: (reaction: CometChat.Reaction, message: CometChat.BaseMessage) => void; onEmojiSelect: (emoji: string, message: CometChat.BaseMessage) => void; onEmojiKeyboardClose: () => void; onReactionListClose: () => void; onReactionListEmpty: () => void; } export const ReactionModals: React.FC = ({ showEmojiKeyboard, showReactionList, selectedMessage, selectedEmoji, reactionsRequestBuilder, onReactionListItemPress, onEmojiSelect, onEmojiKeyboardClose, onReactionListClose, onReactionListEmpty, }) => { return ( <> { onEmojiKeyboardClose(); if (selectedMessage) { onEmojiSelect(item, selectedMessage); } }} /> ); };