import React from 'react'; import { useTranslation } from 'react-i18next'; import { Crown, Lock } from 'lucide-react'; interface ProBadgeProps { variant?: 'inline' | 'block' | 'icon-only'; size?: 'sm' | 'md' | 'lg'; showIcon?: boolean; showLock?: boolean; tooltip?: string; className?: string; } /** * Professional PRO Badge Component * * Használat: * - - Inline badge szöveg mellé * - - Külön blokkként * - - Csak lock ikon */ export default function ProBadge({ variant = 'inline', size = 'sm', showIcon = true, showLock = false, tooltip, className = '', }: ProBadgeProps) { const { t } = useTranslation(); const defaultTooltip = tooltip || t('pro_badge.tooltip'); const sizeClasses = { sm: 'text-xs px-1.5 py-0.5 gap-1', md: 'text-sm px-2 py-1 gap-1.5', lg: 'text-base px-3 py-1.5 gap-2', }; const iconSize = { sm: 12, md: 14, lg: 16, }; // Icon-only variant if (variant === 'icon-only') { const Icon = showLock ? Lock : Crown; return ( ); } // Block variant (full width card-style) if (variant === 'block') { return (
{showIcon && } PRO
); } // Inline variant (compact badge) return ( {showIcon && } PRO ); }