(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,93294,t=>{"use strict";var e=t.i(39475),o=t.i(66841),i=t.i(93871);t.s(["LogoutButton",0,function(){let t=(0,i.useRouter)(),[n,r]=(0,o.useTransition)();return(0,e.jsx)("button",{type:"button",onClick:()=>{r(async()=>{await fetch("/api/auth/logout",{method:"POST"}),t.replace("/login"),t.refresh()})},disabled:n,className:"rounded-xl border border-zinc-200 px-3 py-2 text-sm font-medium text-zinc-700 transition hover:bg-zinc-50 disabled:cursor-not-allowed disabled:opacity-60 dark:border-zinc-800 dark:text-zinc-200 dark:hover:bg-zinc-900",children:n?"Signing out...":"Sign out"})}])}]);