import React from 'react'; import { Crown, Lock } from 'lucide-react'; /** * ProBadge Component * * Displays a PRO badge for premium features * Can be used inline or as a button to trigger upgrade flow */ const ProBadge = ({ variant = 'badge', // 'badge' | 'button' | 'inline' size = 'sm', // 'xs' | 'sm' | 'md' | 'lg' onClick = null, showIcon = true, className = '' }) => { const sizeClasses = { xs: 'text-xs px-1.5 py-0.5', sm: 'text-xs px-2 py-1', md: 'text-sm px-3 py-1.5', lg: 'text-base px-4 py-2' }; const iconSizes = { xs: 'h-2.5 w-2.5', sm: 'h-3 w-3', md: 'h-4 w-4', lg: 'h-5 w-5' }; if (variant === 'inline') { return ( {showIcon && } PRO ); } if (variant === 'button') { return ( ); } // Default badge variant return ( {showIcon && } PRO ); }; /** * ProFeatureLock Component * * Displays a locked feature message with upgrade prompt */ export const ProFeatureLock = ({ featureName, featureDescription, onUpgrade = null, compact = false }) => { const handleUpgrade = () => { if (onUpgrade) { onUpgrade(); } else { // Default: scroll to top and show upgrade info window.scrollTo({ top: 0, behavior: 'smooth' }); alert('Upgrade to PRO to unlock this feature!\n\nPRO features will be available soon.'); } }; if (compact) { return (
feature
); } return (

{featureName}

{featureDescription}

); }; export default ProBadge;