import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2021-2026 GoodData Corporation
import { FormattedMessage } from "react-intl";
export function ShowAllFiltersButton({ isVisible, isFilterBarExpanded, onToggle, }) {
    if (!isVisible) {
        return null;
    }
    const icon = isFilterBarExpanded ? "gd-icon-chevron-up" : "gd-icon-chevron-down";
    return (_jsx("div", { className: "show-all", children: _jsx("button", { className: "button-filter-bar-show-all", type: "button", tabIndex: -1, "aria-hidden": "true", onClick: () => onToggle(!isFilterBarExpanded), children: _jsxs("span", { className: "gd-button-text gd-label", children: [isFilterBarExpanded ? (_jsx(FormattedMessage, { id: "filterBar.showLess" })) : (_jsx(FormattedMessage, { id: "filterBar.showAll" })), _jsx("i", { className: `gd-button-icon gd-icon ${icon}` })
                ] }) }) }));
}
//# sourceMappingURL=ShowAllFiltersButton.js.map