File "Alert-1.0.13-3cded9f0.js"

Full Path: /home/vantageo/public_html/cache/cache/cache/cache/.wp-cli/wp-content/plugins/wp-data-access/assets/dist/Alert-1.0.13-3cded9f0.js
File size: 818 bytes
MIME-type: text/x-java
Charset: utf-8

import{l as m,r as a,j as t}from"./main-1.0.13.js";import{B as u}from"./index.esm-1.0.13-8cdddba7.js";import{A as d,a as f}from"./AlertTitle-1.0.13-80063b16.js";import{I as h}from"./iconBase-1.0.13-98e06aa9.js";import"./Close-1.0.13-b137ce2f.js";import"./useSlot-1.0.13-62ad37b6.js";const F=({severity:e,message:s,now:n,close:c,setClose:l})=>{m.debug(e,s);const[r,i]=a.useState(null);a.useEffect(()=>{i({severity:e,message:s})},[e,s,n]);const p=()=>{i(null),l!==void 0&&l()},x=o=>o.charAt(0).toUpperCase()+o.slice(1);return t.jsx(t.Fragment,{children:r!==null&&t.jsxs(d,{className:"pp-alert",severity:r.severity,sx:{borderRadius:"4px"},action:c!==!1&&t.jsx(h,{onClick:p,sx:{width:"30px",height:"30px"},children:t.jsx(u,{})}),children:[t.jsx(f,{children:x(r.severity.toString())}),r.message]})})};export{F as default};