import{u as n,r,s as a}from"./index-B8oXSmui.js";function o(){const{user:e}=n(),[t,s]=r.useState(null);return r.useEffect(()=>{if(!e){s(!1);return}a.from("user_roles").select("role").eq("user_id",e.id).eq("role","admin").maybeSingle().then(({data:u})=>s(!!u))},[e]),t}export{o as u};
