import React from 'react'; import { useTheme } from '@/lib/theme-context'; interface PricingCardProps { title: string; price: string; billingPeriod: string; features: string[]; ctaText: string; ctaHref: string; isPopular?: boolean; } const PricingCard: React.FC = ({ title, price, billingPeriod, features, ctaText, ctaHref, isPopular = false, }) => { const { theme } = useTheme(); const cardBg = theme === 'dark' ? 'bg-gray-800' : 'bg-white'; const cardText = theme === 'dark' ? 'text-gray-100' : 'text-gray-900'; const cardBorder = theme === 'dark' ? 'border-gray-700' : 'border-gray-200'; const cardShadow = theme === 'dark' ? 'shadow-xl' : 'shadow-2xl'; const cardHover = theme === 'dark' ? 'hover:bg-gray-700' : 'hover:bg-indigo-700'; const cardFocus = theme === 'dark' ? 'focus:ring-indigo-500' : 'focus:ring-indigo-500'; const cardPopular = theme === 'dark' ? 'bg-indigo-700' : 'bg-indigo-600'; const cardFeatureText = theme === 'dark' ? 'text-gray-300' : 'text-gray-700'; const cardFeatureIcon = theme === 'dark' ? 'text-green-400' : 'text-green-500'; return (
{isPopular && (
Most Popular
)} {!isPopular && (
)}

{title}

{title === 'Basic' && 'Perfect for food bloggers and home cooks looking to enhance their culinary photography.'} {title === 'Pro' && 'Everything you need to showcase restaurant dishes professionally and attract more customers.'} {title === 'MasterChef' && 'Complete professional suite for food photographers and culinary brands demanding perfection.'}

{price} /{billingPeriod}

{ctaText}

What's included:

    {features.map((feature, index) => (
  • {feature}
  • ))}
); }; export default PricingCard;