import React from "react";
import { ErrorBoundary as NativeErrorBoundary } from "react-error-boundary";
const Fallback = () => {
    return (React.createElement("div", { id: "app-loading", style: {
            position: "fixed",
            top: "0",
            bottom: "0",
            left: "0",
            right: "0",
            backgroundColor: "#fdfdfd",
            zIndex: "999",
            display: "flex",
            justifyContent: "center",
            alignItems: "center",
        } },
        React.createElement("div", null, "An unexpected error has occurred. Please reload the page to continue")));
};
const ErrorBoundary = (props) => {
    return (React.createElement(NativeErrorBoundary, { FallbackComponent: Fallback }, props.children));
};
export default ErrorBoundary;
//# sourceMappingURL=ErrorBoundary.js.map