import React, { useState } from 'react'; import { View, Text, StyleSheet, TextInput, Pressable, KeyboardAvoidingView, Platform, Alert, Image, ScrollView } from 'react-native'; import { router } from 'expo-router'; import Animated, { FadeInDown, FadeInUp } from 'react-native-reanimated'; import { COLORS, SPACING, TYPOGRAPHY, BORDER_RADIUS, SHADOWS } from '../../../constants/theme'; import { Button } from '../../../components/ui/Button'; import { Mail, Scissors, ChevronLeft } from 'lucide-react-native'; import * as Haptics from 'expo-haptics'; import { useLanguage } from '../../../stores/LanguageContext'; import { useBarbearia } from '../../../stores/BarbeariaContext'; import { SafeAreaView } from 'react-native-safe-area-context'; export default function ForgotPasswordScreen() { const { t } = useLanguage(); const { barbearia } = useBarbearia(); const colors = barbearia?.colors || COLORS; const [email, setEmail] = useState(''); const [isLoading, setIsLoading] = useState(false); const handleRecover = async () => { if (!email) { if (Platform.OS === 'web') { window.alert(t('admin.config.fill_all') || 'Preencha o e-mail'); } else { Alert.alert('Erro', t('admin.config.fill_all') || 'Preencha o e-mail'); } return; } setIsLoading(true); Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium); // Simulação de recuperação setTimeout(() => { setIsLoading(false); if (Platform.OS === 'web') { window.alert('Instruções enviadas para o seu e-mail.'); } else { Alert.alert('Sucesso', 'Instruções enviadas para o seu e-mail.'); } router.back(); }, 1500); }; return ( router.back()} > {t('book.back') || 'Voltar'} {barbearia?.logo ? ( ) : ( )} Recuperar Senha Enviaremos as instruções para seu e-mail.