import { Link } from 'expo-router'; import { useState } from 'react'; import { KeyboardAvoidingView, Platform, Pressable, ScrollView, Text, View } from 'react-native'; import { Button, TextInput } from 'react-native-paper'; import { SafeAreaView } from 'react-native-safe-area-context'; import { useAuth } from '@/context/AuthContext'; import { useUiStore } from '@/stores/ui-store'; export default function LoginScreen() { const { signIn } = useAuth(); const lastEmail = useUiStore((s) => s.lastAuthEmail); const [email, setEmail] = useState(lastEmail); const [password, setPassword] = useState(''); const [loading, setLoading] = useState(false); const [error, setError] = useState(null); return ( Connexion Espace marchand de biens — accès sécurisé {error ? ( {error} ) : null} Pas encore de compte ? Créer un compte ); }