import{c as d,u as l,k as y,j as p,M as u}from"./index-26FXPGkN.js";import{s as I,A as v}from"./useActivityData-K4EnTVaR.js";const k=m=>{const t=d.c(13),{activity:e,showType:r,task:s}=m,{t:n}=l();let i;t[0]!==r||t[1]!==n?(i=r?{action:n("taskAction.add"),predicate:n("activities.comment_one"),type:n("activities.comment_many")}:void 0,t[0]=r,t[1]=n,t[2]=i):i=t[2];let o;t[3]!==e.Id||t[4]!==s.Key||t[5]!==s.SprintId?(o=y.getCommentLink({activityId:e.Id,taskKey:s.Key,sprintId:s.SprintId}),t[3]=e.Id,t[4]=s.Key,t[5]=s.SprintId,t[6]=o):o=t[6];let a;t[7]!==o?(a=p.jsx(u,{className:I.copy,color:"gray.5",value:o}),t[7]=o,t[8]=a):a=t[8];let c;return t[9]!==e||t[10]!==i||t[11]!==a?(c=p.jsx(v,{activity:e,description:i,actions:a}),t[9]=e,t[10]=i,t[11]=a,t[12]=c):c=t[12],c};export{k as C};
