import React from 'react'; import { View, Text, TouchableOpacity, } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import { useTheme } from '@theme'; import { getStyles } from './leadItemCard.styles'; import { LeadItemCardProps } from './leadItemCard.props'; import { getInitials, handleEmailPress, handlePhonePress } from '@utils'; export const LeadItemCard: React.FC = ({ item, onPress, }) => { const { theme: colors } = useTheme(); const styles = getStyles(colors); return ( {/* Left side - Avatar/Initials */} {getInitials(item.name)} {/* Right side - Content */} {/* Name and Status Row */} {item.name || 'No Name'} {item.status_name || item.status || 'No Status'} {/* Email Row */} {item.email ? ( {item.email} handleEmailPress(item.email)} hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}> ) : null} {/* Phone Row */} {item.phonenumber ? ( {item.phonenumber} handlePhonePress(item.phonenumber)} hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}> ) : null} ); };