import{g as e,j as i,q as n}from"./index-DvLxuDtt.js";const l=()=>{const[r,t]=e.useState(!1),[a,c]=e.useState(!0);return e.useEffect(()=>{(async()=>{try{const s=await i.getSubscriptionStatus();if(s.error)console.error("Error checking subscription:",s.error),t(!1);else if(s.data){const o=s.data.subscribed;t(o)}else t(!1)}catch(s){console.error("Error checking subscription status:",s),t(!1)}finally{c(!1)}})()},[]),{isActivated:r,loading:a}},f=n;export{l as a,f as u};
