import{j as e,ao as c,bK as a,bL as r,bM as i,bN as l,aO as x}from"./index-CfKY7XrC.js";function h(){const{owner:s}=a.useParams(),n=a.useSearch();return e.jsx(d,{owner:s,initialConnectorKey:n.connector||n.install})}function d({owner:s,initialConnectorKey:n}){return e.jsx(c,{owner:s,tabSegment:"connectors",title:"Connectors",headless:!0,children:t=>e.jsx(m,{ownerSlug:t.ownerSlug,organizationId:t.organizationId,initialConnectorKey:n})})}function m({ownerSlug:s,organizationId:n,initialConnectorKey:t}){const{data:o=[]}=r(n??"");return e.jsxs("div",{className:"flex flex-1 flex-col gap-6 px-4 py-6 lg:px-6",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(i,{className:"h-7 w-7"}),e.jsx("h1",{className:"text-3xl font-semibold leading-tight",children:"Add a connection"})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Pick a connector from the catalog or drop in an MCP URL — Lobu handles auth and brings the data into memory."})]}),n?e.jsx(l,{ownerSlug:s,organizationId:n,connections:o,initialConnectorKey:t}):e.jsx("div",{className:"max-w-3xl",children:e.jsx(x,{rows:4})})]})}export{d as ConnectionsCreateRouteContent,h as component};
