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 */} ({ opacity: pressed ? 0.85 : 1, alignSelf: 'stretch', })} > {t('mail.empty_state_cta')} ); }