import Link from 'next/link'; import Card from '@/components/ui/Card'; import Button from '@/components/ui/Button'; import { ClockIcon, TicketIcon } from '@heroicons/react/24/outline'; import { Event } from '@/lib/api'; import type { BookingResult } from '../_types'; interface PendingApprovalStepProps { bookingResult: BookingResult; event: Event | null; locale: string; t: (key: string) => string; formatDate: (dateStr: string) => string; fmtTime: (dateStr: string) => string; } export function PendingApprovalStep({ bookingResult, event, locale, t, formatDate, fmtTime, }: PendingApprovalStepProps) { return (
{locale === 'es' ? 'Estamos verificando tu pago. Recibirás un email de confirmación una vez aprobado.' : 'We are verifying your payment. You will receive a confirmation email once approved.'}
{t('booking.success.event')}: {event?.title}
{t('booking.success.date')}: {event && formatDate(event.startDatetime)}
{t('booking.success.time')}: {event && fmtTime(event.startDatetime)}
{t('booking.success.location')}: {event?.location}
{locale === 'es' ? 'La verificación del pago puede tomar hasta 24 horas hábiles. Por favor revisa tu email regularmente.' : 'Payment verification may take up to 24 business hours. Please check your email regularly.'}