import { Linking, ScrollView, Text, TouchableOpacity, View } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; import { Ionicons } from '@expo/vector-icons'; import { useTranslation } from 'react-i18next'; import { useColors } from '../../lib/theme'; import { AppHeader } from '../../components/AppHeader'; type HotlineRowProps = { label: string; sublabel: string; phoneOrUrl: string; isUrl?: boolean; colors: ReturnType; }; function HotlineRow({ label, sublabel, phoneOrUrl, isUrl, colors }: HotlineRowProps) { return ( Linking.openURL(isUrl ? phoneOrUrl : `tel:${phoneOrUrl.replace(/\s/g, '')}`)} activeOpacity={0.7} > {label} {sublabel} ); } export default function CrisisScreen() { const { t } = useTranslation(); const colors = useColors(); const insets = useSafeAreaInsets(); return ( {t('help.crisis_section_gambling')} {t('help.crisis_section_general')} {t('help.crisis_emergency_label')} {t('help.crisis_emergency_desc')} Linking.openURL('tel:112')} activeOpacity={0.7} style={{ backgroundColor: colors.error, borderRadius: 10, paddingVertical: 12, alignItems: 'center', }} > {t('help.crisis_emergency_cta')} {t('help.crisis_disclaimer')} ); }