import{s as r,j as t}from"./vendor-tanstack-CvGXetsl.js";import{dk as m,B as l,g as c,h as a,bC as u,bM as d,bO as x,dI as p}from"./index-D51s66kn.js";import{D as j}from"./delete-confirmation-dialog-CLcHXNx2.js";import{u as f,A as b,a as g,b as h,c as A,d as D}from"./use-delete-automation-confirmation-dialog-qlyweEYb.js";import"./vendor-react-HBv6Kpyp.js";import"./vendor-radix-y_Ik_hIG.js";import"./vendor-recharts-heKD2IVO.js";import"./vendor-forms-BVeRYtt6.js";import"./vendor-date-GSGg4LXF.js";import"./work-queue-icon-text-CyOeUhNM.js";import"./index-2O-Q9Wk4.js";import"./dropdown-menu-0GXqpEoR.js";import"./use-delete-confirmation-dialog-DhzClBrB.js";const N=({id:o})=>{const[s,i]=f(),{data:e}=r(m(o)),n=()=>i(e,{shouldNavigate:!0});return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx(B,{automation:e}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(b,{automation:e}),t.jsx(g,{id:e.id,onDelete:n})]})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx(h,{automation:e}),t.jsx(A,{automation:e}),t.jsx(D,{automation:e})]})]}),t.jsx(j,{...s})]})},B=({automation:o})=>t.jsx(l,{children:t.jsxs(c,{children:[t.jsx(a,{children:t.jsx(u,{to:"/automations",className:"text-xl font-semibold",children:"Automations"})}),t.jsx(d,{}),t.jsx(a,{className:"text-xl font-semibold",children:t.jsx(x,{children:o.name})})]})}),w=function(){const{id:s}=p.useParams();return t.jsx(N,{id:s})};export{w as component};
//# sourceMappingURL=automation._id-C_Iv4e49.js.map
