import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2023-2025 GoodData Corporation
import { CalculateAs } from "@gooddata/sdk-ui-charts";
import { CalculationListItemInfoSection } from "./CalculationListItemInfoSection.js";
export function CalculationListItemInfo({ title, calculationType }) {
    return (_jsxs("div", { className: "calculation-item-info", children: [_jsx("h3", { className: "calculation-item-info-header", children: title }), _jsx(CalculationListItemInfoSection, { calculationType: calculationType, section: "useIn", contentClassNames: "calculation-item-info-use-in-content", shouldHideTitle: true }), calculationType === CalculateAs.CHANGE_DIFFERENCE ? (_jsxs(_Fragment, { children: [_jsx(CalculationListItemInfoSection, { calculationType: CalculateAs.CHANGE, section: "formula", isSectionCombineCalculationType: true }), _jsx(CalculationListItemInfoSection, { calculationType: CalculateAs.DIFFERENCE, section: "formula", isSectionCombineCalculationType: true })] })) : (_jsx(CalculationListItemInfoSection, { calculationType: calculationType, section: "formula" })), _jsx(CalculationListItemInfoSection, { calculationType: calculationType, section: "example" })] }));
}
//# sourceMappingURL=CalculationListItemInfo.js.map