import{h as c,E as n,k as l,q as i,l as e,v as d,y as u,z as x,A as h,w as m,I as g,B as t,Y as j,G as p}from"./index-CQ7DJRNL.js";/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f=c("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),C=()=>{const a=n(),{toast:s}=l(),{logout:o}=i(),r=async()=>{try{await o(),s({title:"Logged Out",description:"You have been successfully logged out."}),a("/")}catch{s({title:"Logout Error",description:"An error occurred during logout.",variant:"destructive"})}};return e.jsx("div",{className:"container mx-auto p-4 max-w-md",children:e.jsxs(d,{className:"mt-10",children:[e.jsxs(u,{className:"text-center",children:[e.jsx(x,{className:"text-2xl",children:"Logout Confirmation"}),e.jsx(h,{children:"Are you sure you want to log out?"})]}),e.jsx(m,{children:e.jsx("div",{className:"text-center text-muted-foreground",children:e.jsx("p",{children:"You will need to login again to access your account."})})}),e.jsxs(g,{className:"flex flex-col gap-2",children:[e.jsxs(t,{variant:"destructive",className:"w-full",onClick:r,children:[e.jsx(j,{className:"mr-2 h-4 w-4"})," Yes, Log me out"]}),e.jsx(t,{variant:"outline",className:"w-full",asChild:!0,children:e.jsxs(p,{to:"/dashboard",children:[e.jsx(f,{className:"mr-2 h-4 w-4"})," Cancel"]})})]})]})})};export{C as default};
