import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2019-2025 GoodData Corporation
import { useIntl } from "react-intl";
import { DropdownControl } from "./DropdownControl.js";
import { messages } from "../../../locales.js";
import { rowSizingDropdownItems } from "../../constants/dropdowns.js";
import { getTranslatedDropdownItems } from "../../utils/translations.js";
export function RowHeightControl({ pushData, properties, defaultValue = "small" }) {
    const intl = useIntl();
    const rowSizing = properties?.controls?.["rowHeight"] ?? defaultValue;
    return (_jsx("div", { className: "s-row-height-config", children: _jsx(DropdownControl, { value: rowSizing, valuePath: "rowHeight", labelText: messages["rowHeight"].id, properties: properties, pushData: pushData, items: getTranslatedDropdownItems(rowSizingDropdownItems, intl) }) }));
}
//# sourceMappingURL=RowHeightControl.js.map