(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,47363,t=>{"use strict";var e=t.i(43476),i=t.i(44127);function o(){return(0,e.jsx)("button",{onClick:i.logout,className:"bg-red-600 text-white px-4 py-2",children:"Logout"})}t.s(["default",()=>o])},65171,t=>{"use strict";var e=t.i(43476),i=t.i(71645),o=t.i(18566);function u({children:t}){let u=(0,o.useRouter)(),[s,n]=(0,i.useState)(!0);return((0,i.useEffect)(()=>{document.cookie.split("; ").find(t=>t.startsWith("token="))?.split("=")[1]?n(!1):u.replace("/login")},[u]),s)?null:(0,e.jsx)(e.Fragment,{children:t})}t.s(["default",()=>u])}]);