Alert-Ce3uT0sN.js 660 B

1
  1. import{s as u,t as v,v as i,w as l,f as c,x as _,y,z as m,D as b}from"./index-DT8qTvyx.js";var A=function(s){u(r,s);function r(){return s!==null&&s.apply(this,arguments)||this}return r.prototype.render=function(){var e=this.props,d=e.render,p=e.body,t=e.level,n=e.icon,a=e.showIcon,o=e.actions,h=v(e,["render","body","level","icon","showIcon","actions"]);i(t)&&(t=l(t,this.props.data)),i(n)&&(n=l(n,this.props.data)),i(a)&&(a=l(a,this.props.data));var f=o?c.isValidElement(o)?o:d("alert-actions",o):null;return c.createElement(_,y({},h,{level:t,icon:n,showIcon:a,actions:f}),d("body",p))},r=m([b({type:"alert"})],r),r}(c.Component);export{A as AlertRenderer};