import { useEffect, useState } from 'react'; import { useRouter } from 'next/router'; import { Flex } from '@mantine/core'; import { AuthenticationForm } from '@/components/Forms/AuthenticationForm'; export default function HomePage() { const router = useRouter(); // const [checking, setChecking] = useState(true); // useEffect(() => { // router.replace('/login').then(() => setChecking(false)); // }, [router]); // // if (checking) { // return

Checking login status...

; // } return ( <> ); }