import { getCanonicalPaytoType, getPaytoEditorTypeLabel } from '@/lib/payto' import PaytoTypeIcon from '@/components/PaytoTypeIcon' import { cn } from '@/lib/utils' export default function SuperchatPaymentMethodLabel({ paytoType, className, imgClassName, iconOnly = false }: { /** Canonical or alias payto type (`lightning`, `monero`, `geyser`, …). */ paytoType: string className?: string imgClassName?: string /** Profile wall: icon only (label in `title` for hover). */ iconOnly?: boolean }) { const canonical = getCanonicalPaytoType(paytoType) const label = getPaytoEditorTypeLabel(canonical) return ( {iconOnly ? null : {label}} ) }