import type { FunctionComponent } from "react"; import { useRef } from "react"; import Modal, { ModalTitle } from "~/features/core/components/modal"; import type { Plan } from "./plans"; type Props = { isOpen: boolean; nextPlan: Plan | null; confirm: (nextPlan: Plan) => void; closeModal: () => void; }; const SwitchPlanModal: FunctionComponent = ({ isOpen, nextPlan, confirm, closeModal }) => { const confirmButtonRef = useRef(null); return (
Are you sure you want to switch to {nextPlan?.title}?

You're about to switch to the {nextPlan?.title} plan. You will be billed immediately a prorated amount and the next billing date will be recalculated from today.

); }; export default SwitchPlanModal;