'use client' import { useState } from 'react' import { useSearchParams } from 'next/navigation' import { Card } from '@/components/ui/card' import { CheckoutSteps } from '@/components/checkout/checkout-steps' import { CheckoutSummary } from '@/components/checkout/checkout-summary' import { PaymentMethodCard } from '@/components/checkout/payment-method-card' import { Button } from '@/components/ui/button' import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' import { getPricingPlanById } from '@/lib/mock-data' import Link from 'next/link' import { Rocket, ChevronRight } from 'lucide-react' export function CheckoutContent() { const searchParams = useSearchParams() const planId = searchParams.get('plan') || 'growth-web' const step = (searchParams.get('step') as 'account' | 'billing' | 'payment') || 'account' const [currentStep, setCurrentStep] = useState<'account' | 'billing' | 'payment'>(step) const [selectedPaymentMethod, setSelectedPaymentMethod] = useState('card') const plan = getPricingPlanById(planId) if (!plan) { return (

Plan not found

) } const serviceName = plan.serviceType === 'web-design' ? 'Web Design' : 'AI Automation' return (
{/* Header */}

ScaleSite

{/* Steps */}
{/* Left side - Forms */}
{/* Account Step */} {currentStep === 'account' && (

Account Information

)} {/* Billing Step */} {currentStep === 'billing' && (

Billing Address

)} {/* Payment Step */} {currentStep === 'payment' && (

Payment Method

setSelectedPaymentMethod('card')} /> setSelectedPaymentMethod('paypal')} /> setSelectedPaymentMethod('stripe-link')} />
{selectedPaymentMethod === 'card' && (
)}
)}
{/* Right side - Summary */}
) }