import React from 'react'; import { TouchableOpacity, Text, StyleSheet, Dimensions } from 'react-native'; import Animated, { FadeIn, FadeOut } from 'react-native-reanimated'; import { MaterialCommunityIcons } from '@expo/vector-icons'; import { Colors } from 'src/theme'; interface MessagePosition { x: number; y: number; isMine: boolean; width: number; height: number; } interface OptionsMenuProps { messagePosition: MessagePosition | null; selectedMessage: any; handleOptionPress: (option: string) => void; } const OptionsMenu: React.FC = ({ messagePosition, selectedMessage, handleOptionPress }) => selectedMessage && messagePosition && ( handleOptionPress('reply')}> Reply handleOptionPress('copy')}> Copy handleOptionPress('delete')}> Delete {/* handleOptionPress('pin')}> Pin message */} ); const styles = StyleSheet.create({ optionsMenu: { position: 'absolute', backgroundColor: 'rgba(255, 255, 255, 0.9)', borderRadius: 10, padding: 8, shadowColor: '#000', shadowOpacity: 0.3, shadowOffset: { width: 0, height: 2 }, shadowRadius: 5, elevation: 5, width: Dimensions.get('window').width * 0.75 }, optionButton: { paddingVertical: 10, paddingHorizontal: 12, flexDirection: 'row', justifyContent: 'space-between' }, optionText: { fontSize: 16 } }); export default OptionsMenu;