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