import { jsx as _jsx } from "react/jsx-runtime";
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/
import { Suspense } from "react";
import EmptyState from "@foxglove/studio-base/components/EmptyState";
import ErrorBoundary from "@foxglove/studio-base/components/ErrorBoundary";
import RemountOnValueChange from "@foxglove/studio-base/components/RemountOnValueChange";
// FIXME: Unsupported
// TODO: Rewrite in the same was as Image and PointCloud
export const PlotPanel = React.memo(function PlotPanel({ configOverride }) {
    const PlotPanelComponent = React.lazy(async () => await import("@foxglove/studio-base/panels/Plot"));
    return (_jsx(RemountOnValueChange, { value: "internal-player", children: _jsx(ErrorBoundary, { children: _jsx(Suspense, { fallback: _jsx(EmptyState, { children: _jsx("div", { children: "Loading..." }) }), children: _jsx(PlotPanelComponent, { overrideConfig: configOverride }) }) }) }));
});
//# sourceMappingURL=PlotPanel.js.map