import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2026 GoodData Corporation
import { forwardRef } from "react";
import cx from "classnames";
import { Button } from "@gooddata/sdk-ui-kit";
export const SelectionTypeButton = forwardRef(function SelectionTypeButton({ title, isOpen, toggleDropdown }, ref) {
    const buttonClassNames = cx("gd-button-primary", "gd-button-small", "button-dropdown", "dropdown-button", "selection-kind-dropdown-button", "s-selection-kind-dropdown-button", {
        "is-active": isOpen,
    });
    const iconRight = isOpen ? "gd-icon-navigateup" : "gd-icon-navigatedown";
    return (_jsx(Button, { ref: ref, className: buttonClassNames, title: title, value: title, onClick: toggleDropdown, iconRight: iconRight }));
});
//# sourceMappingURL=SelectionTypeButton.js.map