import{n as e,t}from"./compiler-runtime-BUESly0A.js";import{n}from"./typed-query-DE230XJj.js";import{c as r}from"./index-BnZjJvcS.js";var i=t(),a=e();function o(){let e=(0,i.c)(11),{loading:t,error:o,data:s}=n(r),c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,a.jsx)(`h1`,{className:`text-2xl font-semibold mb-4`,children:`Health Check`}),e[0]=c):c=e[0];let l;e[1]===t?l=e[2]:(l=t&&(0,a.jsx)(`div`,{className:`text-muted`,children:`Loading...`}),e[1]=t,e[2]=l);let u;e[3]===o?u=e[4]:(u=o&&(0,a.jsxs)(`div`,{className:`text-red-500`,children:[`Error: `,o.message]}),e[3]=o,e[4]=u);let d;e[5]===s?d=e[6]:(d=s&&(0,a.jsxs)(`div`,{className:`rounded-lg border p-6`,children:[(0,a.jsx)(`div`,{className:`text-sm text-muted`,children:`GraphQL Response`}),(0,a.jsx)(`div`,{className:`mt-2 text-3xl font-mono`,children:s.health}),(0,a.jsx)(`div`,{className:`mt-1 text-xs text-muted`,children:`from https://sa-api.localhost/api/graphql`})]}),e[5]=s,e[6]=d);let f;return e[7]!==l||e[8]!==u||e[9]!==d?(f=(0,a.jsxs)(`div`,{className:`p-8`,children:[c,l,u,d]}),e[7]=l,e[8]=u,e[9]=d,e[10]=f):f=e[10],f}export{o as component};