1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t,r as n}from"./framework-DjWA_DlG.js";var r=e(n(),1),i=t();function a({workflow:e}){let[t,n]=(0,r.useState)(`passing`);(0,r.useEffect)(()=>{let t=!0;return fetch(`https://img.shields.io/github/actions/workflow/status/authdog/web-sdk/${e}.json?branch=main`).then(e=>e.ok?e.json():null).then(e=>{if(!t||!e?.message)return;let r=e.message.toLowerCase();r.includes(`pass`)||r.includes(`success`)?n(`passing`):r.includes(`fail`)||r.includes(`error`)||r.includes(`cancel`)?n(`failing`):n(`pending`)}).catch(()=>{}),()=>{t=!1}},[e]);let a=t===`failing`?`bg-red-600 hover:bg-red-500`:t===`pending`?`bg-amber-500 hover:bg-amber-400`:`bg-[#44bb00] hover:bg-[#3daa00]`;return(0,i.jsxs)(`a`,{href:`https://github.com/authdog/web-sdk/actions/workflows/${e}`,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center rounded-full px-3 py-1 text-sm font-medium text-white transition-colors ${a}`,title:`${e} on GitHub Actions`,children:[`CI `,t]})}export{a as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.