import{j as s}from"./markdown-9_JKOUHQ.js";import{D as d,a as p,b as x,c as h,d as u}from"./dialog-DapeOKPE.js";import{P as f}from"./PromptInput-Cq_fXmwj.js";import{u as b}from"./input-Dyxe5hqI.js";function w({open:i,onClose:e,onSubmit:n,loading:l=!1,projectId:r}){const{t}=b(),o=async(a,m,c)=>await n(a,m,c)===!1?!1:(e(),!0);return s.jsx(d,{open:i,onOpenChange:a=>{a||e()},children:s.jsxs(p,{className:"gap-0 p-0 sm:max-w-3xl",children:[s.jsxs(x,{className:"px-4 pb-2 pt-4",children:[s.jsx(h,{className:"text-sm",children:t("kanban.addThread","Add new thread")}),s.jsx(u,{className:"sr-only",children:t("thread.describeTask","Describe the task for the agent")})]}),s.jsx("div",{className:"px-4 pb-4",children:s.jsx(f,{onSubmit:o,loading:l,isNewThread:!0,projectId:r},r)})]})})}export{w as S};
