import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2007-2026 GoodData Corporation
import { useSlideSizeStyle } from "../../dashboardContexts/useSlideData.js";
import { GridLayoutElement } from "./GridLayoutElement.js";
const isHiddenStyle = { height: 0, width: 0, overflow: "hidden", flex: 0 };
const defaultStyle = {};
export function ExportableDashboardLayoutSectionRenderer({ children, parentLayoutItemSize, parentLayoutPath, className, isHidden, exportData, }) {
    const style = isHidden ? isHiddenStyle : defaultStyle;
    const type = "section";
    const exportStyles = useSlideSizeStyle("export", type, parentLayoutPath);
    return (_jsx(GridLayoutElement, { type: type, layoutItemSize: parentLayoutItemSize, className: className, style: style, exportData: exportData, exportStyles: exportStyles, children: children }));
}
