import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
import { useError } from "../data/index.js";
export const path = "/error";
export function Errors() {
    const error = useError();
    console.error(error);
    return (_jsxs(_Fragment, { children: [_jsx("h2", { children: "Ran into an error!" }), _jsx("p", { children: error instanceof Error ? error.message : String(error) }), _jsx("br", {}), _jsx("br", {}), _jsx("a", { href: "/", className: "text-blue-600 hover:bg-white underline hover:underline-offset-2", children: "Go to home page" })] }));
}
export const Component = Errors;
//# sourceMappingURL=error.js.map