import React, { useState } from 'react'; import PaymentGateway from './PaymentGateway'; interface PricingViewProps { onPaymentSuccess: (amount: number, credits: number) => void; } const PricingView: React.FC = ({ onPaymentSuccess }) => { const [selectedPlan, setSelectedPlan] = useState<{name: string, price: number, credits: number} | null>(null); const plans = [ { name: 'Starter', price: 0, credits: 500, description: 'Perfect for exploring AI capabilities.', features: ['500 Monthly Credits', 'Standard Chat', '1:1 Images', 'Watermarked Videos'], button: 'Current Plan', current: true }, { name: 'Pro', price: 1599, // INR credits: 5000, description: 'For power users and creators.', features: ['5,000 Monthly Credits', 'Google Search Grounding', 'HD Image Generation', 'Veo 3.1 Fast Video', 'Priority Support'], button: 'Upgrade to Pro', current: false, popular: true }, { name: 'Agency', price: 7999, // INR credits: 50000, description: 'Unlimited potential for teams.', features: ['50,000 Monthly Credits', 'API Access', 'Custom Model Tuning', 'Dedicated Manager', 'White-label Support'], button: 'Get Agency', current: false } ]; const handleUpgrade = (plan: any) => { if (plan.current) return; setSelectedPlan({ name: plan.name, price: plan.price, credits: plan.credits }); }; return (

Fuel Your Creativity

Choose the plan that fits your ambition. Prices converted to INR for Indian users.

{plans.map((plan) => (
{plan.popular && (
Most Popular
)}

{plan.name}

₹{plan.price.toLocaleString('en-IN')} /month

{plan.description}

    {plan.features.map((feat) => (
  • {feat}
  • ))}
))}
{selectedPlan && ( setSelectedPlan(null)} onSuccess={() => { onPaymentSuccess(selectedPlan.price, selectedPlan.credits); setSelectedPlan(null); }} /> )}
); }; export default PricingView;