import { Pressable, Text, View } from 'react-native'; import { Ionicons } from '@expo/vector-icons'; import { useTranslation } from 'react-i18next'; type Props = { onConnectPress: () => void; }; /** * Leerer Zustand wenn kein Postfach verbunden ist. * Hero-CTA öffnet ConnectMailSheet. */ export function MailEmptyState({ onConnectPress }: Props) { const { t } = useTranslation(); return ( {/* Icon-Circle */} {t('mail.empty_state_title')} {t('mail.empty_state_subtitle')} {/* Privacy-Punkte */} {(['privacy_1', 'privacy_2', 'privacy_3'] as const).map((key) => ( {t(`mail.${key}`)} ))} {/* CTA */} ({ backgroundColor: '#007AFF', borderRadius: 14, paddingVertical: 14, paddingHorizontal: 28, alignSelf: 'stretch', alignItems: 'center', opacity: pressed ? 0.85 : 1, })} > {t('mail.empty_state_cta')} ); }