import { Link } from 'expo-router'; import { Pressable, StyleSheet, Text, TextInput, View } from 'react-native'; import { useLogin } from '@/features/auth/hooks/useLogin'; import { StatusMessage } from '@/shared/ui/StatusMessage'; export default function LoginScreen() { const { email, password, setEmail, setPassword, submit, isSubmitting, error } = useLogin(); return ( Iniciar sesión {error ? : null} {isSubmitting ? 'Entrando...' : 'Entrar'} ¿No tienes cuenta? Regístrate ); } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', padding: 24, gap: 12, }, title: { fontSize: 28, fontWeight: '700', marginBottom: 16, }, input: { borderWidth: 1, borderColor: '#ccc', borderRadius: 10, paddingHorizontal: 14, paddingVertical: 12, }, button: { backgroundColor: '#1f6feb', paddingVertical: 14, borderRadius: 10, alignItems: 'center', marginTop: 8, }, buttonText: { color: '#fff', fontWeight: '600', }, link: { marginTop: 12, }, });