import{j as e,S as n,h as t,q as i,t as o,m as d,a1 as l}from"./vendor-ClLR6ncd.js";import{d as m}from"./Cancel-BcN7wjUl.js";import{d as c,i as u,L as x}from"./index-OtVJl4GC.js";import{u as p,i as g}from"./model-wi_gyraa.js";import"./lodash-ZyeDnt0e.js";function S(){const s=p(),a=c(r=>u({url:"/serverWarnings",method:"delete",params:{tag:r}}),{onSettled:g});return s.isLoading?e.jsx(x,{}):e.jsxs(n,{spacing:2,sx:{flexGrow:1,textAlign:"left",p:4},children:[e.jsx(t,{variant:"h4",children:"Server Warnings"}),s.data.length===0?e.jsx(t,{children:"No warnings from the server"}):e.jsx(i,{disablePadding:!0,children:s.data.map(r=>e.jsx(o,{disableGutters:!0,secondaryAction:r.cancellable===!1?null:e.jsx(l,{edge:"end",onClick:()=>a.mutate(r.tag),children:e.jsx(m,{})}),children:e.jsx(d,{primary:`${r.tag} ${r.category}`,secondary:r.expansion})},r.tag))})]})}export{S as default};
