import { BadgeCheck, ExternalLink } from 'lucide-react'; import { cn } from '@/lib/utils'; import { SKATESPOTS_SITE, type ProfileBadge } from '@/lib/badges'; /** The app logo is already served with the site. */ const SKATESPOTS_LOGO = '/images/logo-icon.png'; const isApp = (b: ProfileBadge) => b.label === 'SkateSpots' && b.url === SKATESPOTS_SITE; /** * ProfileBadges — the row of badges on a profile (own or someone else's). * Clicking a badge with a link opens it in a new tab. */ export function ProfileBadges({ badges, size = 'md', className, }: { badges: ProfileBadge[]; size?: 'sm' | 'md'; className?: string; }) { if (badges.length === 0) return null; return (