import{r as u}from"./vendor-react-wBh_31cN.js";import{u as i}from"./useProject-FSnHbCQX.js";import{J as n}from"./index-BKr2rJhV.js";import{c as f}from"./vendor-router-D1GqFWiT.js";const P=m=>{const{id:t}=f(),{project:o}=i(m??+t),{data:e}=n();return u.useMemo(()=>{var a;const s=(a=o==null?void 0:o.projectTeam)==null?void 0:a.find(({user:r})=>r.username===(e==null?void 0:e.username));return s==null?void 0:s.teamRole},[e==null?void 0:e.username,o==null?void 0:o.projectTeam])};export{P as u};
