import*as e from"react";import{useSocketMessages as n}from"../../runtime/useSocketMessages";const c=({error:r})=>{const t=e.useRef(!1),a=e.useCallback(()=>{if(!t.current){t.current=!0;return}window.location.reload()},[]);return n("errors-updated",a),e.createElement("div",{style:{padding:"10px 40px"}},e.createElement("h2",{style:{color:"#dc0014"}},"An Error Has Occurred"),e.createElement("h4",null,r?.message),e.createElement("pre",{style:{whiteSpace:"break-spaces"}},r?.stack))};function o({pageProps:r}){return e.createElement(c,{...r})}export{c as ErrorDetails,o as default};
