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 { DashboardRichText } from "../../richText/DashboardRichText.js";
/**
 * @internal
 */
export function ExportableDashboardRichTextWidget({ widget, screen, dashboardItemClasses, exportData, }) {
    return (_jsx(DashboardItem, { className: cx(dashboardItemClasses, "type-rich-text", "gd-dashboard-view-widget"), screen: screen, exportData: exportData?.section, children: _jsx(DashboardItemBase, { visualizationClassName: "gd-rich-text-widget-wrapper", isExport: true, children: () => _jsx(DashboardRichText, { widget: widget, exportData: exportData?.widget }) }) }));
}
