import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2022-2025 GoodData Corporation
import { useIntl } from "react-intl";
import { Button } from "@gooddata/sdk-ui-kit";
export function DropdownControls({ closeHandler, isSaveButtonEnabled, onSave, }) {
    const intl = useIntl();
    const onSaveHandler = () => {
        onSave();
        closeHandler();
    };
    return (_jsxs("div", { className: "gd-dialog-footer dropdown-footer", children: [
            _jsx(Button, { className: "gd-button-secondary s-attribute-filter-dropdown-configuration-cancel-button", value: intl.formatMessage({ id: "cancel" }), disabled: false, onClick: () => closeHandler() }), _jsx(Button, { className: "gd-button-action s-attribute-filter-dropdown-configuration-save-button", value: intl.formatMessage({ id: "attributesDropdown.save" }), disabled: !isSaveButtonEnabled, onClick: onSaveHandler })
        ] }));
}
