import type { ComponentChildren } from 'preact'; interface ConfirmDialogProps { open: boolean; title: string; message: string; showIcon?: boolean; confirmText?: string; cancelText?: string; danger?: boolean; onConfirm: () => void; onCancel: () => void; children?: ComponentChildren; } export default function ConfirmDialog(props: ConfirmDialogProps) { if (!props.open) return null; return (