import type { PlanWithFeatures } from '@repo/api-contract'; import { Check, X } from 'lucide-react'; type ReviewStepProps = { data: { complexName: string; physicalAddress: string; city?: string; state?: string; country?: string; planCode: string; setupCourts: boolean; courtSportName?: string; courtStartTime?: string; courtEndTime?: string; courtDaysOfWeek?: string[]; }; selectedPlan: PlanWithFeatures | undefined; }; const DAY_LABELS: Record = { MONDAY: 'Lunes', TUESDAY: 'Martes', WEDNESDAY: 'Miércoles', THURSDAY: 'Jueves', FRIDAY: 'Viernes', SATURDAY: 'Sábado', SUNDAY: 'Domingo', }; export function ReviewStep({ data, selectedPlan }: ReviewStepProps) { return (

Revisá tus datos

Antes de confirmar, revisá que todos los datos sean correctos.

{data.city && } {data.state && } {data.country && }
{selectedPlan ? ( <>
{[ ['publicBookingPage', 'Página de booking pública'], ['onlinePayments', 'Pagos online'], ['advancedReports', 'Reportes avanzados'], ['whatsappReminders', 'Recordatorios WhatsApp'], ].map(([feature, label]) => { const enabled = selectedPlan.features[feature as keyof typeof selectedPlan.features]; return (
{enabled ? ( ) : ( )} {label}
); })}
) : (

No se seleccionó un plan.

)}
{data.setupCourts ? ( <> DAY_LABELS[d] ?? d).join(', ')} /> ) : (

No se crearán canchas automáticamente. Podés agregarlas después.

)}
); } function Section({ title, children }: { title: string; children: React.ReactNode }) { return (

{title}

{children}
); } function Row({ label, value }: { label: string; value: string }) { return (
{label} {value}
); }