import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2020-2026 GoodData Corporation
import cx from "classnames";
import { DashboardItem } from "../../../presentationComponents/DashboardItems/DashboardItem.js";
import { DashboardItemBase } from "../../../presentationComponents/DashboardItems/DashboardItemBase.js";
import { useWidgetHighlighting } from "../../common/useWidgetHighlighting.js";
import { DashboardVisualizationSwitcher } from "../../visualizationSwitcher/DashboardVisualizationSwitcher.js";
/**
 * @internal
 */
export function DefaultDashboardVisualizationSwitcherWidget({ widget, screen, dashboardItemClasses, }) {
    const { elementRef, highlighted } = useWidgetHighlighting(widget);
    return (_jsx(DashboardItem, { className: cx(dashboardItemClasses, "type-visualization", "gd-dashboard-view-widget", {
            "gd-highlighted": highlighted,
        }), screen: screen, ref: elementRef, children: _jsx(DashboardItemBase, { visualizationClassName: "gd-visualization-switcher-widget-wrapper", children: () => _jsx(DashboardVisualizationSwitcher, { widget: widget, screen: screen }) }) }));
}
//# sourceMappingURL=DefaultDashboardVisualizationSwitcherWidget.js.map