import{c as e}from"./useRouterState-DkU0JPAO.js";import{Ht as t,r as n}from"./button-cdxnqcgzwko8ooha-DW4HgSd6.js";import{t as r}from"./Warning.es-Bgaquy77.js";var i=e(),a=`An unknown error occurred. Please report this issue to Cloudflare.`;function o({error:e}){let o=(`errors`in e?e.errors?.[0]?.message:e.message)??a;return(0,i.jsxs)(`div`,{className:`text-text-secondary flex flex-1 flex-col items-center justify-center space-y-4 p-12 text-center`,children:[(0,i.jsx)(r,{size:48}),(0,i.jsx)(`h2`,{className:`text-text text-3xl font-bold`,children:`Something went wrong`}),(0,i.jsx)(`p`,{className:`text-text-secondary text-sm font-light`,children:o}),(0,i.jsx)(t,{to:`/`,children:(0,i.jsx)(n,{variant:`secondary`,children:`Go home`})})]})}export{o as t};