import React, { useState } from 'react'; import { View, Text, StyleSheet, TextInput, KeyboardAvoidingView, Platform, Alert, TouchableOpacity, 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 { useLanguage } from '../../stores/LanguageContext'; import { Button } from '../../components/ui/Button'; import { Card } from '../../components/ui/Card'; import { Mail, Lock, Scissors, ChevronLeft, User, Phone, Store } from 'lucide-react-native'; import * as Haptics from 'expo-haptics'; import { SafeAreaView } from 'react-native-safe-area-context'; export default function AdminRegister() { const { t } = useLanguage(); const [shopName, setShopName] = useState(''); const [name, setName] = useState(''); const [email, setEmail] = useState(''); const [phone, setPhone] = useState(''); const [password, setPassword] = useState(''); const [isLoading, setIsLoading] = useState(false); const handleRegister = async () => { if (!shopName || !name || !email || !password) { if (Platform.OS === 'web') { window.alert(t('admin.config.fill_all') || 'Preencha todos os campos'); } else { Alert.alert('Erro', t('admin.config.fill_all') || 'Preencha todos os campos'); } return; } setIsLoading(true); Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium); // Mock register setTimeout(() => { setIsLoading(false); if (Platform.OS === 'web') { window.alert('Cadastro realizado com sucesso! Faça login.'); } else { Alert.alert('Sucesso', 'Cadastro realizado com sucesso! Faça login.'); } router.replace('/admin/login'); }, 1500); }; return ( router.back()} > {t('admin.config.back') || 'Voltar'} Criar Conta Junte-se ao BarberFlow Pro e digitalize sua barbearia. Nome da Barbearia Seu Nome {t('admin.email') || 'E-mail'} Telefone (WhatsApp) {t('admin.password') || 'Senha'}