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