diff --git a/app/components/SubscriptionCancelModal.tsx b/app/components/SubscriptionCancelModal.tsx new file mode 100644 index 00000000..12cea77e --- /dev/null +++ b/app/components/SubscriptionCancelModal.tsx @@ -0,0 +1,54 @@ +import { useNavigate } from "@remix-run/react"; + +import { Button } from "~/components/ui/button"; +import { + Dialog, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, + DialogTrigger, +} from "~/components/ui/dialog"; + +interface SubscriptionCancelModalProperties { + children: React.ReactNode; + onReactivateSubscription?: () => void; +} + +export default function SubscriptionCancelModal({ + children, + onReactivateSubscription, +}: SubscriptionCancelModalProperties) { + const navigate = useNavigate(); + + const onGoToDashboard = () => { + navigate("/dashboard"); + }; + + return ( + + + + + + + Subscription canceled + + Your subscription has been successfully canceled. If you change your + mind, you can reactivate your subscription anytime + + + + + + + + + + ); +}