{"version":3,"file":"JoinButton.077RBGyf.mjs","names":[],"sources":["https:/framerusercontent.com/modules/gArEtmSY8Mhr2pCiHvu6/P4kLIwG9x6SbXSUtIzC5/JoinButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useAuth}from\"https://framerusercontent.com/modules/dHmTJRVO8BDJcZx3NUaw/tnTcOIJGmBbNpMutMKg0/AuthStore.js\";// 텍스트 레이어에 적용 (텍스트 변경)\nexport function JoinButton(Component){return props=>{const{isAuthenticated,refreshSession,goToDashboard,goToSignUp}=useAuth();const handleClick=async()=>{// 클릭 시 세션 재확인\nconst currentAuth=await refreshSession();if(currentAuth.isAuthenticated){goToDashboard();}else{goToSignUp();}};return /*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(Component,{...props,onClick:handleClick,onTap:handleClick,visible:!isAuthenticated})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"JoinButton\":{\"type\":\"reactHoc\",\"name\":\"JoinButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./JoinButton.map"],"mappings":"kMACA,SAAgB,EAAW,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,kBAAgB,iBAAe,gBAAc,cAAY,GAAS,CAAO,EAAY,SAAS,EACvI,MAAM,GAAgB,EAAgB,gBAAiB,GAAe,CAAO,GAAY,EAAI,OAAoB,EAAK,MAAM,CAAC,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EAAY,MAAM,EAAY,QAAQ,CAAC,EAAgB,CAAC,CAAC,CAAC,mBAFrN,IAAkH"}