import"react";import{Box as i,Flex as r,Link as u,Spinner as x,Text as t}from"@chakra-ui/react";import{CheckCircleIcon as g,ExternalLinkIcon as p,WarningIcon as f}from"@chakra-ui/icons";import{jsx as e,jsxs as o}from"react/jsx-runtime";var F=({failed:l,completed:n,inProgress:d,title:m,isLast:s,hasLink:a,link:c})=>o(r,{align:"center",h:10,children:[e(i,{h:1,w:1,bg:"foreground",borderRadius:"50%",position:"relative",_after:!s&&{content:'""',position:"absolute",top:"1",left:"50%",border:"1px solid",borderColor:n?"mutedForeground":"muted",height:"9",transform:"translateX(-50%)"}}),o(r,{alignItems:"center",children:[e(t,{ml:4,children:m}),a&&e(u,{href:c,isExternal:!0,children:e(p,{ml:"10px",cursor:"pointer"})})]}),e(r,{ml:"auto",children:l?o(r,{align:"center",children:[e(t,{fontSize:"sm",color:"destructive",mr:1,children:"Failed"}),e(f,{color:"destructive"})]}):n?e(g,{}):d?o(r,{align:"center",children:[e(t,{fontSize:"sm",color:"mutedForeground",mr:1,children:"In progress"}),e(x,{color:"mutedForeground",size:"sm"})]}):e(i,{h:4,w:4,borderRadius:"50%",color:"mutedForeground",border:"2px solid"})})]}),L=F;export{L as default};
