/** * Contact Card component for mobile */ import React from 'react'; import { View, Text, TouchableOpacity, Linking } from 'react-native'; import type { ContactInfo } from '@manacore/shared-help-types'; import type { HelpTranslations } from '../types'; interface ContactCardProps { contact: ContactInfo | null; translations: Pick; } export function ContactCard({ contact, translations }: ContactCardProps) { if (!contact) { return ( {translations.contact.noInfo} ); } function handleEmailPress() { if (contact.supportEmail) { Linking.openURL(`mailto:${contact.supportEmail}`); } } // Strip HTML tags for mobile display const plainContent = contact.content.replace(/<[^>]*>/g, '').trim(); return ( {plainContent && ( {plainContent} )} {contact.supportEmail && ( ✉️ {translations.contact.email} {contact.supportEmail} )} {contact.responseTime && ( ⏱️ Response Time {contact.responseTime} )} ); }