import React from 'react'; import { motion } from 'framer-motion'; import { X, ChevronDown } from 'lucide-react'; interface DeptModalProps { isOpen: boolean; onClose: () => void; deptFormData: { name: string; headOfDepartment: string; totalBedsCapacity: number; contactPhone: string; isActive: boolean; }; setDeptFormData: (data: any) => void; allUsers: any[]; selectedHospital: any; onSubmit: () => void; } export const DeptModal: React.FC = ({ isOpen, onClose, deptFormData, setDeptFormData, allUsers, selectedHospital, onSubmit, }) => { if (!isOpen) return null; return (

Add Department

setDeptFormData({ ...deptFormData, name: e.target.value }) } placeholder="e.g. Emergency & Trauma" />
setDeptFormData({ ...deptFormData, totalBedsCapacity: parseInt(e.target.value) || 0, }) } />
setDeptFormData({ ...deptFormData, contactPhone: e.target.value, }) } placeholder="+91-..." />
); };