import{c as o,j as e,N as n,d as l,e as t,f as s,g as i,h as a,i as r,k as c,l as d,m as C,n as p,o as x}from"./index-NVkDXUf-.js";const f=({open:o,title:t,text:s,dismissable:i,openConnectionModalOnClose:a,setConnectionModalOpen:r,onNotificationClose:c,firstButton:d,secondButton:C})=>e.jsx("div",{children:e.jsxs(n,{size:"large",open:o,onClose:()=>{i&&(c(),a&&r())},"aria-labelledby":"form-dialog-title",disableCloseButton:!i,children:[e.jsx(n.Header,{id:"form-dialog-title",children:t}),e.jsx(n.Content,{style:{minWidth:"300px"},children:s?.toString()}),d&&e.jsxs(n.Actions,{children:[e.jsx(l,{color:d.color?d.color:"primary",onClick:()=>{d.onClick()},style:{float:"right"},children:d.label}),e.jsx(l,{color:C.color?C.color:"primary",onClick:()=>{C.onClick()},style:{float:"right"},children:C.label})]})]})}),h=o((o=>({open:t(o),openConnectionModalOnClose:!s(o)&&!i(o),title:a(o),text:r(o),dismissable:c(o),firstButton:d(o),secondButton:C(o)})),(o=>({onNotificationClose:()=>o(p()),setConnectionModalOpen:()=>o(x(!0))})))(f);export{f as NeoNotificationModal,h as default};
