import{a8 as e,j as t,J as n,O as a,k as i}from"./index-CHfgriyV.js";import{M as u}from"./main-D1eRPv4V.js";import{u as p}from"./mutations-B6Dg9yD6.js";import"./useMutation-DgMLlnbr.js";function g(){const r=e(),o=p(),s=async()=>{await o.mutateAsync(),r.history.push("/")};return t.jsx(u,{title:"Logout",description:"Logout from Plakar",icon:"right-to-bracket",children:o.error?t.jsx(n,{illustrationType:"sad",title:"Unable to logout your Plakar session",description:o.error instanceof a?o.error.responsePayload:o.error.toString()}):t.jsx(i,{onPress:s,variant:"error",children:"Sign out"})})}export{g as component};
