import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2024-2026 GoodData Corporation
import { useMemo } from "react";
import { useDashboardComponentsContext } from "../../dashboardContexts/DashboardComponentsContext.js";
/**
 * @internal
 */
export function DashboardVisualizationSwitcher(props) {
    const { widget } = props;
    const { VisualizationSwitcherWidgetComponentSet } = useDashboardComponentsContext();
    const VisualizationSwitcherComponent = useMemo(() => VisualizationSwitcherWidgetComponentSet.MainComponentProvider(widget), [VisualizationSwitcherWidgetComponentSet, widget]);
    return _jsx(VisualizationSwitcherComponent, { ...props });
}
//# sourceMappingURL=DashboardVisualizationSwitcher.js.map