import React from "react"; import { Button } from "@/components/ui/button"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { useCheckoutWizard } from "../WizardContext"; import { Trans, useTranslation } from 'react-i18next'; interface ConfirmationStepProps { onViewProfile?: () => void; onGoToAdmin?: () => void; } export const ConfirmationStep: React.FC = ({ onViewProfile, onGoToAdmin }) => { const { t } = useTranslation('marketing'); const { selectedPackage } = useCheckoutWizard(); const handleProfile = React.useCallback(() => { if (typeof onViewProfile === 'function') { onViewProfile(); return; } window.location.href = '/settings/profile'; }, [onViewProfile]); const handleAdmin = React.useCallback(() => { if (typeof onGoToAdmin === 'function') { onGoToAdmin(); return; } window.location.href = '/event-admin'; }, [onGoToAdmin]); const packageName = selectedPackage?.name ?? ''; return (
{t('checkout.confirmation_step.welcome')} }} values={{ name: packageName }} />

{t('checkout.confirmation_step.email_followup')}

); };