import { jsx as _jsx } from "react/jsx-runtime";
import classNames from "classnames";
import { Button } from "@gooddata/sdk-ui-kit";
export function DisplayFormButton({ isOpened, text: title, toggleDropdown }) {
    const buttonClassNames = classNames("gd-button-primary", "gd-button-small", "button-dropdown", "dropdown-button", "attribute-display-form-button", "s-attribute-display-form-button", {
        "is-active": isOpened,
    });
    const iconRight = isOpened ? "icon-navigateup" : "icon-navigatedown";
    return (_jsx(Button, { className: buttonClassNames, title: title, value: title, onClick: toggleDropdown, iconRight: iconRight }));
}
//# sourceMappingURL=DisplayFormButton.js.map