import { useOAuthCallback } from '../hooks/useOAuthCallback';
import { AuthLayout } from '../components/AuthLayout';

export function OAuthCallbackPage() {
  useOAuthCallback();

  return (
    <AuthLayout title="Connexion en cours..." subtitle="Veuillez patienter...">
      <div className="text-center">
        <div className="animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto"></div>
        <p className="mt-4 text-sm text-gray-600">
          Finalisation de votre connexion...
        </p>
      </div>
    </AuthLayout>
  );
}
