import React from 'react'; import { XCircle, RefreshCw } from 'lucide-react'; import type { ModuleItem } from '../../types'; import { normalizeCategory } from '../../utils/category'; interface EditModuleModalProps { module: ModuleItem | null; name: string; description: string; category: string; saving: boolean; onNameChange: (val: string) => void; onDescriptionChange: (val: string) => void; onSave: (e: React.FormEvent) => void; onClose: () => void; } export const EditModuleModal: React.FC = ({ module, name, description, category, saving, onNameChange, onDescriptionChange, onSave, onClose, }) => { if (!module) return null; return (
{(module.name || 'M')[0].toUpperCase()}

Edit Clinical Module

{module.slug}

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

Category is fixed to keep core Complete Pack entitlements consistent. Use Plans & Pricing to create custom combo bundles.