// (C) 2026 GoodData Corporation
import { insightProperties } from "@gooddata/sdk-model";
/**
 * @internal
 */
export const isInsightKeyDriverAnalysisEnabled = (insight) => {
    const visualizationProperties = insight ? insightProperties(insight) : {};
    const controls = visualizationProperties?.["controls"] ?? {};
    return !!insight && !controls.disableKeyDriveAnalysis;
};
//# sourceMappingURL=keyDriverAnalysis.js.map