import React from 'react'; import { RefreshCw } from 'lucide-react'; interface EditPriceModalProps { plan: any | null; name: string; desc: string; badge: string; heading: string; subtitle: string; priceInr: string; priceUsd: string; priceEur: string; allModules?: any[]; moduleIds?: string[]; saving: boolean; onNameChange: (v: string) => void; onDescChange: (v: string) => void; onBadgeChange: (v: string) => void; onHeadingChange: (v: string) => void; onSubtitleChange: (v: string) => void; onPriceInrChange: (v: string) => void; onPriceUsdChange: (v: string) => void; onPriceEurChange: (v: string) => void; onToggleModule?: (id: string) => void; onSelectAllModules?: () => void; onClearAllModules?: () => void; onSave: (e: React.FormEvent) => void; onClose: () => void; } export const EditPriceModal: React.FC = ({ plan, name, desc, badge, heading, subtitle, priceInr, priceUsd, priceEur, allModules = [], moduleIds = [], saving, onNameChange, onDescChange, onBadgeChange, onHeadingChange, onSubtitleChange, onPriceInrChange, onPriceUsdChange, onPriceEurChange, onToggleModule, onSelectAllModules, onClearAllModules, onSave, onClose, }) => { if (!plan) return null; return (

Edit Plan Details & Pricing

Update rates and storefront presentation.

{plan.base_code || plan.code}
onNameChange(e.target.value)} className="w-full bg-slate-50 border border-slate-200 rounded-xl px-3 py-2 text-xs font-bold text-slate-800 focus:outline-none focus:border-indigo-500" />