import { useEffect } from 'react' import { useNavigate } from '@tanstack/react-router' import { useUser } from '@/hooks/use-auth' import { RegisterForm } from './RegisterForm' export function RegisterPage() { const user = useUser() const navigate = useNavigate() useEffect(() => { if (user) navigate({ to: '/' }) }, [user, navigate]) return (
school TOEIC Luyện thi

Tạo tài khoản miễn phí

Không cần xác nhận email — dùng ngay lập tức

navigate({ to: '/' })} onSwitchToLogin={() => navigate({ to: '/auth/login' })} />
) }