import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2019-2026 GoodData Corporation
import { memo } from "react";
import { useIntl } from "react-intl";
import { messages } from "../../../../locales.js";
import { sensitivityDropdownItems } from "../../../constants/dropdowns.js";
import { getTranslatedDropdownItems } from "../../../utils/translations.js";
import { DropdownControl } from "../DropdownControl.js";
export const AnomalySensitivityControl = memo(function AnomalySensitivityControl(props) {
    const intl = useIntl();
    const generateDropdownItems = () => {
        return getTranslatedDropdownItems(sensitivityDropdownItems, intl);
    };
    return (_jsx(DropdownControl, { value: props.value, valuePath: "anomalies.sensitivity", labelText: messages["anomalySensitivity"].id, disabled: props.disabled, properties: props.properties, pushData: props.pushData, items: generateDropdownItems(), showDisabledMessage: props.showDisabledMessage }));
});
//# sourceMappingURL=AnomalySensitivityControl.js.map