{"version":3,"file":"useAuthStatus.Cn2dB76K.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/OGt7RJLJUDuWNHmAhlkL/r9wlNvasdPAj93zGfJ5N/useAuthStatus.js"],"sourcesContent":["import{useState,useEffect}from\"react\";function getTfuCookie(){return document.cookie.split(\"; \").some(c=>c.startsWith(\"tfu_authenticated=1\"));}export default function useAuthStatus(){const[isLoggedIn,setIsLoggedIn]=useState(getTfuCookie);useEffect(()=>{// Re-check the cookie periodically in case the user logs in/out in another tab\nconst interval=setInterval(()=>{setIsLoggedIn(getTfuCookie());},3e3);return()=>clearInterval(interval);},[]);return isLoggedIn;}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./useAuthStatus.map"],"mappings":"2GAAsC,SAAS,GAAc,CAAC,OAAO,SAAS,OAAO,MAAM,KAAK,CAAC,KAAK,GAAG,EAAE,WAAW,sBAAsB,CAAC,CAAE,SAAwB,GAAe,CAAC,GAAK,CAAC,EAAW,GAAeA,EAAS,EAAa,CAChI,OADiI,MAAc,CAC5P,IAAM,EAAS,gBAAgB,CAAC,EAAc,GAAc,CAAC,EAAG,IAAI,CAAC,UAAU,cAAc,EAAS,EAAG,EAAE,CAAC,CAAQ,mBAD9E"}