'use client';

import { useEffect } from 'react';
import { useRouter } from 'next/navigation';

/**
 * EN: Redirect /auth/login to /login
 * VI: Chuyển hướng /auth/login sang /login
 */
export default function AuthLoginRedirect() {
    const router = useRouter();

    useEffect(() => {
        router.replace('/login');
    }, [router]);

    return (
        <div className="min-h-screen flex items-center justify-center">
            <p className="text-text-secondary">Redirecting...</p>
        </div>
    );
}
