"use client"; import { cn } from "@/lib/utils"; import type { PaymentMethod } from "@/lib/saleor/payments/types"; import { Banknote, CreditCard, Building2, LucideIcon } from "lucide-react"; import { useTranslations } from "next-intl"; // Icon mapping for payment methods const iconMap: Record = { Banknote, CreditCard, Building2, }; interface PaymentMethodCardProps { method: PaymentMethod; isSelected: boolean; onSelect: () => void; disabled?: boolean; locale: string; } export function PaymentMethodCard({ method, isSelected, onSelect, disabled = false, locale, }: PaymentMethodCardProps) { const t = useTranslations("Payment"); const Icon = method.icon ? iconMap[method.icon] : Banknote; // Get translated name and description based on method ID const translatedName = t(`${method.id}.name`); const translatedDescription = t(`${method.id}.description`); return (