'use client';

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

export default function PagamentoPage() {
  const router = useRouter();

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

  return (
    <div className="min-h-screen flex items-center justify-center bg-gray-50">
      <div className="text-center">
        <div className="animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto mb-4"></div>
        <h2 className="text-lg font-medium text-gray-900">Redirecionando...</h2>
        <p className="text-sm text-gray-500 mt-2">
          Redirecionando para checkout.
        </p>
      </div>
    </div>
  );
}
