import Superchat from '@/components/Note/Superchat' import Zap from '@/components/Note/Zap' import MoneroTip from '@/components/Note/MoneroTip' import { ExtendedKind } from '@/constants' import { isMoneroTipKind } from '@/lib/monero-tip' import { superchatSectionHeadingClass } from '@/lib/superchat-ui' import { cn } from '@/lib/utils' import { Skeleton } from '@/components/ui/skeleton' import { Event } from 'nostr-tools' import { useTranslation } from 'react-i18next' /** Roughly five profile-wall superchat rows before scrolling. */ const PROFILE_WALL_SUPERCHAT_SCROLL_MAX_HEIGHT = 'max-h-[28rem]' const PROFILE_WALL_SUPERCHAT_VISIBLE_CAP = 5 export default function ProfileWallSuperchats({ superchats, isLoading }: { superchats: Event[] isLoading?: boolean }) { const { t } = useTranslation() if (isLoading && superchats.length === 0) { return (