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 { textWrappingDropdownItems } from "../../constants/dropdowns.js";
import { getTranslatedDropdownItems } from "../../utils/translations.js";
export function TextWrappingControl({ pushData, properties, defaultValue = "clip", }) {
    const intl = useIntl();
    const rowSizing = properties?.controls?.["cellTextWrapping"] ?? defaultValue;
    return (_jsx("div", { className: "s-text-wrapping-config", children: _jsx(DropdownControl, { value: rowSizing, valuePath: "cellTextWrapping", labelText: messages["textWrapping"].id, properties: properties, pushData: pushData, items: getTranslatedDropdownItems(textWrappingDropdownItems, intl) }) }));
}
//# sourceMappingURL=TextWrappingControl.js.map