import{n as e}from"./useAnnotationQueues-DnoGcOPa.js";import{B_ as t,Hy as n,Ql as r,Zv as i,_v as a,ap as o,dg as s,kp as c,lh as l,m_ as u,ty as d,vv as f}from"./index-DDwwBb9e.js";import{t as p}from"./AnnotationsTable-CEsXi7KL.js";var m=n();function h(){let n=c(),{project:h}=o(),{slug:g}=n.query,_=l.annotation.getQueueBySlugOrId.useQuery({projectId:h?.id??``,slug:g},{enabled:!!h?.id&&typeof g==`string`&&!!g}),v=_.data?.members?.map(e=>e.user);return(0,m.jsx)(e,{children:(0,m.jsx)(t,{maxWidth:`calc(100vw - 330px)`,padding:0,margin:0,children:(0,m.jsx)(p,{noDataTitle:`No queued annotations for this queue`,noDataDescription:`Add a message to this queue to get started.`,tableHeader:(0,m.jsx)(()=>_.data?(0,m.jsxs)(s,{width:`full`,align:`start`,children:[(0,m.jsx)(d,{size:`lg`,children:_.data?.name}),(0,m.jsxs)(u,{children:[(0,m.jsx)(i,{fontSize:`sm`,children:`Members: `}),v?.map(e=>(0,m.jsx)(r,{content:e.name,children:(0,m.jsx)(f,{size:`xs`,children:(0,m.jsx)(a,{name:e.name??``})})},e.id))]})]}):null,{}),queueId:_.data?.id??``})})})}export{h as default};
//# sourceMappingURL=_slug_-YFWjfQ9o.js.map