import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; import { Check } from 'lucide-react'; import { useAuth } from '@/context/AuthContext'; const plans = [ { name: 'Starter', credits: 50, price: '$9.99', popular: false }, { name: 'Pro', credits: 200, price: '$29.99', popular: true }, { name: 'Studio', credits: 1000, price: '$99.99', popular: false }, ]; export default function PricingModal({ open, onOpenChange }) { const { purchaseCredits } = useAuth(); const handlePurchase = (amount) => { purchaseCredits(amount); onOpenChange(false); // In a real app, this would trigger Stripe/Payment gateway alert(`Successfully purchased ${amount} credits!`); }; return ( Upgrade your credits Get more generations with our flexible credit packs.
{plans.map((plan) => (
{plan.popular && ( Most Popular )}

{plan.name}

{plan.price}
{plan.credits} Generation Credits
High Priority Queue
))}
); }