import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
/**
 * Default error boundary fallback component
 *
 * This is rendered when an error occurs and no custom error boundary
 * is defined in the route tree. Shows a simple "Internal Server Error"
 * message with the error details in development.
 */
export function DefaultErrorFallback({ error, }) {
    const isDev = process.env.NODE_ENV !== "production";
    return (_jsxs("div", { style: {
            fontFamily: "system-ui, -apple-system, sans-serif",
            padding: "2rem",
            maxWidth: "600px",
            margin: "2rem auto",
        }, children: [_jsx("h1", { style: {
                    color: "#dc2626",
                    fontSize: "1.5rem",
                    marginBottom: "1rem",
                }, children: "Internal Server Error" }), _jsx("p", { style: {
                    color: "#374151",
                    marginBottom: "1rem",
                }, children: "An unexpected error occurred while processing your request." }), isDev && (_jsxs("div", { style: {
                    background: "#fef2f2",
                    border: "1px solid #fecaca",
                    borderRadius: "0.5rem",
                    padding: "1rem",
                    marginBottom: "1rem",
                }, children: [_jsxs("p", { style: {
                            fontWeight: 600,
                            color: "#991b1b",
                            marginBottom: "0.5rem",
                        }, children: [error.name, ": ", error.message] }), error.stack && (_jsx("pre", { style: {
                            fontSize: "0.75rem",
                            color: "#6b7280",
                            overflow: "auto",
                            whiteSpace: "pre-wrap",
                            wordBreak: "break-word",
                        }, children: error.stack }))] })), _jsx("a", { href: "/", style: {
                    display: "inline-block",
                    color: "#2563eb",
                    textDecoration: "underline",
                }, children: "Go to homepage" })] }));
}
//# sourceMappingURL=default-error-boundary.js.map