import React from 'react'; import { View, Text, StyleSheet, Modal, TouchableOpacity, Linking } from 'react-native'; import { Feather } from '@expo/vector-icons'; import { useAppTheme } from '../context/ThemeContext'; interface KillSwitchProps { visible: boolean; message?: string; supportEmail?: string; } export const KillSwitchOverlay = ({ visible, message, supportEmail }: KillSwitchProps) => { const { colors, isDark } = useAppTheme(); return ( System Maintenance {message || "We're currently performing urgent system maintenance to improve your experience. Please check back later."} Service Temporarily Unavailable {supportEmail && ( Linking.openURL(`mailto:${supportEmail}`)} > Contact Support )} ); }; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', padding: 32, }, glow: { position: 'absolute', width: 300, height: 300, borderRadius: 150, top: '10%', }, content: { alignItems: 'center', width: '100%', }, iconContainer: { padding: 20, borderRadius: 40, marginBottom: 32, elevation: 8, shadowColor: '#000', shadowOffset: { width: 0, height: 10 }, shadowOpacity: 0.1, shadowRadius: 20, }, iconBox: { width: 100, height: 100, borderRadius: 30, alignItems: 'center', justifyContent: 'center', }, title: { fontSize: 32, fontFamily: 'Outfit_800ExtraBold', textAlign: 'center', marginBottom: 20, letterSpacing: -0.5, }, messageBox: { paddingHorizontal: 10, marginBottom: 40, }, message: { fontSize: 16, fontFamily: 'Outfit_400Regular', textAlign: 'center', lineHeight: 26, }, statusBadge: { flexDirection: 'row', alignItems: 'center', paddingVertical: 10, paddingHorizontal: 18, borderRadius: 50, gap: 10, }, dot: { width: 8, height: 8, borderRadius: 4, }, statusText: { fontSize: 13, fontFamily: 'Outfit_600SemiBold', letterSpacing: 0.5, textTransform: 'uppercase', }, supportBtn: { marginTop: 60, flexDirection: 'row', alignItems: 'center', paddingVertical: 16, paddingHorizontal: 32, borderRadius: 20, elevation: 4, shadowColor: '#000', shadowOffset: { width: 0, height: 4 }, shadowOpacity: 0.1, shadowRadius: 8, }, supportText: { fontSize: 15, fontFamily: 'Outfit_700Bold', }, });