'use client' import { CreditCard, Link as LinkIcon, Wallet } from 'lucide-react' import { Card } from '@/components/ui/card' interface PaymentMethodCardProps { id: string icon: string label: string description: string selected: boolean onSelect: () => void } const iconMap: Record> = { card: CreditCard, paypal: Wallet, 'stripe-link': LinkIcon, } export function PaymentMethodCard({ id, icon, label, description, selected, onSelect, }: PaymentMethodCardProps) { const IconComponent = iconMap[icon] || CreditCard return (
{selected && (
)}

{label}

{description}

) }