import React from 'react'; interface ModalShellProps { title: string; edit: boolean; onClose: () => void; onSave: () => void; onDelete?: () => void; children: React.ReactNode; } const ModalShell: React.FC = ({ title, edit, onClose, onSave, onDelete, children }) => { const handleOverlayClick = (e: React.MouseEvent) => { if (e.target === e.currentTarget) { onClose(); } }; return (

{title}

{children}
{edit && onDelete && ( )}
); }; export default ModalShell;