import React from 'react'; import { View, Text, StyleSheet, TouchableOpacity, Image } from 'react-native'; import { router, useLocalSearchParams } from 'expo-router'; import Animated, { FadeInDown, FadeInUp } from 'react-native-reanimated'; import { COLORS, SPACING, TYPOGRAPHY, BORDER_RADIUS, SHADOWS } from '../../constants/theme'; import { useLanguage } from '../../stores/LanguageContext'; import { useBarbearia } from '../../stores/BarbeariaContext'; import { SafeAreaView } from 'react-native-safe-area-context'; import { Scissors, Languages } from 'lucide-react-native'; export default function TenantLanguageSelection() { const { setLanguage, t } = useLanguage(); const { barbearia, isLoading } = useBarbearia(); const { slug } = useLocalSearchParams(); const handleSelect = (lang: 'pt' | 'es') => { setLanguage(lang); router.push(`/${slug}/(auth)/login`); }; if (isLoading) return null; const colors = barbearia?.colors || COLORS; return ( {/* Logo da Barbearia */} {barbearia?.logo ? ( ) : ( )} {barbearia?.nome || "BarberFlow"} Selecione seu idioma Como deseja continuar? handleSelect('pt')} > 🇧🇷 Português Preços em Real (R$) handleSelect('es')} > 🇪🇸 Español Precios en Guaraníes (GS) ); } const styles = StyleSheet.create({ container: { flex: 1 }, content: { flex: 1, padding: SPACING.xl, justifyContent: 'center', maxWidth: 500, width: '100%', alignSelf: 'center' }, logoContainer: { alignItems: 'center', marginBottom: SPACING.xxxl }, logoCircle: { width: 100, height: 100, borderRadius: 50, alignItems: 'center', justifyContent: 'center', marginBottom: SPACING.md, borderWidth: 2 }, logoImage: { width: 100, height: 100, borderRadius: 50 }, brandName: { ...TYPOGRAPHY.h2, letterSpacing: 1, fontWeight: '800' }, header: { alignItems: 'center', marginBottom: SPACING.xxl }, title: { ...TYPOGRAPHY.h3, marginBottom: 8 }, subtitle: { ...TYPOGRAPHY.bodySmall }, options: { gap: SPACING.md }, langCard: { flexDirection: 'row', alignItems: 'center', padding: SPACING.xl, borderRadius: BORDER_RADIUS.xl, borderWidth: 1, ...(SHADOWS.medium as any) }, flag: { fontSize: 32, marginRight: SPACING.lg }, langInfo: { flex: 1 }, langName: { ...TYPOGRAPHY.h4, fontWeight: '700' }, langDesc: { ...TYPOGRAPHY.caption } });