'use client' import React from 'react' interface CrownBadgeProps { crowns: number size?: 'sm' | 'md' | 'lg' showLabel?: boolean } export function CrownBadge({ crowns, size = 'md', showLabel = true }: CrownBadgeProps) { const sizeClasses = { sm: 'text-base', md: 'text-xl', lg: 'text-3xl', } const isGold = crowns >= 3 const isSilver = crowns >= 1 return (
{isGold ? '👑' : isSilver ? '🥈' : '⭐'} {showLabel && ( {crowns} )}
) }