import { ReactNode } from 'react'; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog'; interface BaseModalProps { isOpen: boolean; onClose: () => void; title: string | ReactNode; description?: string; children: ReactNode; footer?: ReactNode; maxWidth?: string; maxHeight?: string; } export function BaseModal({ isOpen, onClose, title, description, children, footer, maxWidth = "sm:max-w-[500px]", maxHeight = "max-h-[90vh]" }: BaseModalProps) { return ( {title} {description && {description}}
{children}
{footer && {footer}}
); }