import Link from 'next/link' interface CheckoutStepsProps { currentStep: 'account' | 'billing' | 'payment' } const steps = [ { id: 'account', label: 'Account' }, { id: 'billing', label: 'Billing' }, { id: 'payment', label: 'Payment' }, ] export function CheckoutSteps({ currentStep }: CheckoutStepsProps) { const currentIndex = steps.findIndex((s) => s.id === currentStep) return (
{steps.map((step, index) => (
{index > 0 && (
)} {index < currentIndex ? '✓' : index + 1} {step.label}
))}
) }