import { useRouter } from 'expo-router' import React from 'react' import { StyleSheet, Text, View } from 'react-native' import AppleSignInButton from '../../components/buttons/AppleSignInButton' import Button from '../../components/buttons/Button' import GoogleSignInButton from '../../components/buttons/GoogleSignInButton' import AppInput from '../../components/inputs/Input' import PublicScreenLayout from '../../components/layout/PublicScreenLayout' import useRegisterForm from '../../hooks/useRegisterForm' import Fonts from '../../styles/Fonts' import Palette from '../../styles/Palette' export default function RegisterScreen() { const router = useRouter() const { email, setEmail, password, setPassword, confirmPassword, setConfirmPassword, handleSubmit, signInWithGoogle, signInWithApple, isAppleSignInAvailable, isLoading, } = useRegisterForm() const handleGoBack = () => { if (router.canGoBack?.()) { router.back() return } router.replace('/(public)/login') } return ( Rejoignez Minuit Créez votre compte en quelques secondes et profitez de l'expérience complète.