import{n as e,t}from"./useQuery-BGE2QjQQ.js";import{B as n}from"./index-DjQIajtc.js";import{t as r}from"./compiler-runtime-JzGT6-yI.js";var i=r(),a=n(),o=e`
  query Health {
    health
  }
`;function s(){let e=(0,i.c)(11),{loading:n,error:r,data:s}=t(o),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]===n?l=e[2]:(l=n&&(0,a.jsx)(`div`,{className:`text-muted`,children:`Loading...`}),e[1]=n,e[2]=l);let u;e[3]===r?u=e[4]:(u=r&&(0,a.jsxs)(`div`,{className:`text-red-500`,children:[`Error: `,r.message]}),e[3]=r,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 http://localhost:4000/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{s as component};