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 './leadDetailHeader.styles'; import { LeadDetailHeaderProps } from './leadDetailHeader.props'; import { getInitials, toRgba } from '@utils'; export const LeadDetailHeader: React.FC = ({ name, company, email, phonenumber, statusName, statusColor, avatarColor, onStatusPress, onEmailPress, onPhonePress, }) => { const { theme: colors, isDark } = useTheme(); const styles = getStyles(colors); const accent = statusColor || avatarColor || '#5B4CF5'; const badgeBg = toRgba(accent, isDark ? 0.20 : 0.12); return ( {/* Top Row: Avatar + Info + Status */} {getInitials(name)} {name || 'No Name'} {company ? ( {company} ) : null} {' '}{phonenumber || 'N/A'}{' '} {' '}{email || 'N/A'} {statusName || 'No Status'} {/* Bottom Row: Call + Email Buttons */} Call Email ); };