/* Copyright 2026 Marimo. All rights reserved. */ import { Provider } from "jotai"; import { type PropsWithChildren, lazy, Suspense, useState } from "react"; import { type FallbackProps, ErrorBoundary as ReactErrorBoundary, } from "react-error-boundary"; import { store } from "@/core/state/jotai"; import { Button } from "../../ui/button"; import { Dialog, DialogTrigger } from "../../ui/dialog"; import { Toaster } from "../../ui/toaster"; import { TooltipProvider } from "../../ui/tooltip"; const FeedbackModal = lazy(() => import("../chrome/components/feedback-button").then((mod) => ({ default: mod.FeedbackModal, })), ); export const ErrorBoundary: React.FC = (props) => { return ( {props.children} ); }; const FallbackComponent: React.FC = (props) => { const [open, setOpen] = useState(false); return (

Something went wrong

        {props.error?.message}
      
{open && ( )}
); };