import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2020-2025 GoodData Corporation
import { useIntl } from "react-intl";
import { DropdownControl } from "./DropdownControl.js";
import { messages } from "../../../locales.js";
import { dataPointsDropdownLabels } from "../../constants/dropdowns.js";
import { getTranslatedDropdownItems } from "../../utils/translations.js";
export function DataPointsControl({ pushData, properties, isDisabled, showDisabledMessage = false, defaultValue = "auto", }) {
    const intl = useIntl();
    const dataPoints = properties?.controls?.["dataPoints"]?.visible ?? defaultValue;
    return (_jsx("div", { className: "s-data-points-config", children: _jsx(DropdownControl, { value: dataPoints, valuePath: "dataPoints.visible", labelText: messages["dataPoints"].id, disabled: isDisabled, properties: properties, pushData: pushData, items: getTranslatedDropdownItems(dataPointsDropdownLabels, intl), showDisabledMessage: showDisabledMessage }) }));
}
//# sourceMappingURL=DataPointsControl.js.map