import{j as r,h as n,S as c}from"./vendor-ClLR6ncd.js";import{aL as i}from"./index-OtVJl4GC.js";function s({children:e}){return r.jsx(c,{sx:{p:2},spacing:2,children:e})}function x({queryResultError:e,children:a}){return i(e)?r.jsx(s,{children:r.jsx(n,{children:"Query execution was cancelled"})}):r.jsxs(s,{children:[r.jsx(n,{alignSelf:"center",color:"error.main",children:"An error occurred on executing the query"}),r.jsx(n,{sx:{whiteSpace:"pre-wrap"},children:e.message}),a]})}export{x as E};
