import { getCanonicalPaytoType, getPaytoEditorTypeLabel, getPaytoIconChar, getPaytoLogoPath, isLightningPaytoType } from '@/lib/payto' import { cn } from '@/lib/utils' import { Zap as ZapIcon } from 'lucide-react' export default function SuperchatPaymentMethodLabel({ paytoType, className }: { /** Canonical or alias payto type (`lightning`, `monero`, `geyser`, …). */ paytoType: string className?: string }) { const canonical = getCanonicalPaytoType(paytoType) const label = getPaytoEditorTypeLabel(canonical) const logoPath = getPaytoLogoPath(canonical) const iconChar = getPaytoIconChar(canonical) const isLightning = isLightningPaytoType(canonical) return ( {logoPath ? ( ) : isLightning ? ( ) : iconChar ? ( {iconChar} ) : null} {label} ) }