Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Last active May 15, 2026 01:13
Show Gist options
  • Select an option

  • Save codigoconjuan/d57252917f678cc99cdd75b005738042 to your computer and use it in GitHub Desktop.

Select an option

Save codigoconjuan/d57252917f678cc99cdd75b005738042 to your computer and use it in GitHub Desktop.
Componente para reanudar la suscripción CashTrackr
import { useState } from "react";
export default function SubscriptionResume() {
const [loading, setLoading] = useState(false);
const resumeSubscription = () => {
};
return (
<div className="rounded-xl border-2 border-purple-200 bg-purple-50 p-6">
<h3 className="text-xl font-bold mb-2">¿Cambiaste de opinión?</h3>
<p className="text-gray-600 mb-4">
Aún puedes reactivar tu suscripción antes del{' '}
sin cargos adicionales.
</p>
<button
onClick={resumeSubscription}
disabled={loading}
className="bg-purple-600 hover:bg-purple-700 text-white font-bold py-3 px-6 rounded-lg disabled:opacity-50"
>
{loading ? 'Procesando...' : 'Reactivar suscripción'}
</button>
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment