import { useNavigate } from 'react-router-dom'

import { AuthForm } from '../components'
import CardLayout from '../components/CardLayout'

function LoginPage() {
    const navigate = useNavigate()

    function goBack() {
        navigate(-1 - Number(import.meta.env.DEV))
    }

    return (
        <CardLayout text='Представьтесь'>
            <AuthForm goBack={goBack} />
        </CardLayout>
    )
}

export default LoginPage
