import { X } from 'lucide-react'; interface DialogProps { isOpen: boolean; onClose: () => void; title: string; message: string; type?: 'alert' | 'confirm'; onConfirm?: () => void; confirmText?: string; cancelText?: string; } export default function Dialog({ isOpen, onClose, title, message, type = 'alert', onConfirm, confirmText = 'OK', cancelText = 'Отмена', }: DialogProps) { if (!isOpen) return null; const handleConfirm = () => { if (onConfirm) { onConfirm(); } onClose(); }; return (
{message}