import{u as r,av as n,r as i}from"./index-dP1W1_bd.js";import{u as d}from"./useProject-CXVt1xnE.js";const c=t=>{const{id:m}=r(),{project:e}=d(t??+m),{data:s}=n();return i.useMemo(()=>{var o;const a=(o=e==null?void 0:e.projectTeam)==null?void 0:o.find(({user:u})=>u.username===(s==null?void 0:s.username));return a==null?void 0:a.teamRole},[s==null?void 0:s.username,e==null?void 0:e.projectTeam])};export{c as u};
