import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2022-2025 GoodData Corporation
import cx from "classnames";
import { Button } from "@gooddata/sdk-ui-kit";
export function SelectionModeButton({ title, isOpen, toggleDropdown }) {
    const buttonClassNames = cx("gd-button-primary", "gd-button-small", "button-dropdown", "dropdown-button", "selection-mode-dropdown-button", "s-selection-mode-dropdown-button", {
        "is-active": isOpen,
    });
    const iconRight = isOpen ? "gd-icon-navigateup" : "gd-icon-navigatedown";
    return (_jsx(Button, { className: buttonClassNames, title: title, value: title, onClick: toggleDropdown, iconRight: iconRight }));
}
