import{u as r,cK as n,r as i}from"./index-ea7817a2.js";import{u as c}from"./useProject-77619fff.js";const p=t=>{const{id:m}=r(),{project:e}=c(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{p as u};
