import React from 'react'; export interface ModalProps { title: string; active: boolean; onClose?: () => void; onConfirm: () => void; confirmName?: string; confirmClass?: string; confirmEnabled?: boolean; cancelName?: string; cancelClass?: string; showCancel?: boolean; bgDismiss?: boolean; } export default function Modal({ active, title, onClose, onConfirm, confirmName, confirmClass, confirmEnabled, cancelName, cancelClass, showCancel, bgDismiss, children, }: React.PropsWithChildren): React.ReactElement { return (
onClose() : null} >

{title}

{showCancel ? ( ) : null}
{children}
); }