import n from"@babel/runtime/helpers/slicedToArray";import{useState as e}from"react";import{func as o,bool as t,node as r,number as i}from"prop-types";import{makeStyles as s,Grid as a,Button as m}from"@material-ui/core";import d from"./components/Content.js";import l from"../Modal/Modal.js";import{jsx as c,jsxs as p}from"react/jsx-runtime";var u=s({modal:{maxWidth:450,width:"100vw"},actionsAdornment:{flex:1}});function C(o){var t=o.onClose,r=o.isProcessing,i=o.isSaveDisabled,s=o.onSave,C=o.startAdornment,f=o.endAdornment,A=o.actionsAdornment,h=o.customContent,v=o.userCompanyId,y=u(),b=e(),g=n(b,2),S=g[0],x=g[1];return c(l,{open:!0,onClose:t,title:"Add a Comment",contentClassName:y.modal,actions:p(a,{container:!0,direction:"row",justify:"flex-end",alignItems:"center",spacing:2,children:[A&&c(a,{item:!0,className:y.actionsAdornment,children:A}),c(a,{item:!0,children:c(m,{color:"primary",disabled:r,onClick:t,children:"Cancel"})}),c(a,{item:!0,children:c(m,{variant:"contained",color:"primary",disabled:i,onClick:function(){return s(S)},children:r?"Processing...":"Send"})})]}),children:c(d,{userCompanyId:v,startAdornment:C,endAdornment:f,customContent:h,setComment:x})})}C.propTypes={onClose:o,onSave:o.isRequired,isProcessing:t,isSaveDisabled:t,startAdornment:r,endAdornment:r,actionsAdornment:r,customContent:r,userCompanyId:i.isRequired},C.defaultProps={onClose:function(){},isProcessing:!1,isSaveDisabled:!1,startAdornment:null,endAdornment:null,customContent:null,actionsAdornment:null};export{C as default};
//# sourceMappingURL=Popup.js.map
