import{j as t}from"./vendor-ui-BUsIib4b.js";import{r as n}from"./vendor-react-C0ZmnAiH.js";import{B as h}from"./index-ccpu5IUx.js";import{E as j,c as y,b as E,d as N,e as w,a as v}from"./empty-D3OFfn6N.js";const B=({title:l,message:o,phosphorIcon:m,secondaryIcon:e,iconCycleMs:s=3e3,actionLabel:a,onActionClick:r,buttonClassName:c,buttonVariant:p="default"})=>{const x=!!a&&!!r,[i,u]=n.useState(!0);return n.useEffect(()=>{if(!e)return;const d=window.setInterval(()=>{u(f=>!f)},s);return()=>{window.clearInterval(d)}},[e,s]),t.jsxs(j,{className:"flex min-h-[200px] items-center justify-center gap-0",children:[t.jsxs(y,{children:[t.jsxs(E,{variant:"icon",className:"relative h-10 w-10",children:[t.jsx("span",{className:`absolute inset-0 flex items-center justify-center transition-all duration-500 ${i?"opacity-100 translate-x-0":"opacity-0 -translate-x-2"}`,children:t.jsx(m,{size:20,className:"text-muted-foreground"})}),e&&t.jsx("span",{className:`absolute inset-0 flex items-center justify-center transition-all duration-500 ${i?"opacity-0 translate-x-2":"opacity-100 translate-x-0"}`,children:t.jsx(e,{size:20,className:"text-muted-foreground"})})]}),t.jsx(N,{children:l}),t.jsx(w,{children:o})]}),x&&t.jsx(v,{className:"mt-4",children:t.jsx(h,{type:"button",size:"sm",variant:p,className:c,onClick:r,children:a})})]})};export{B as U};