import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2007-2025 GoodData Corporation
import cx from "classnames";
import { InvertableSelectLimitWarning } from "./InvertableSelectLimitWarning.js";
import { InvertableSelectStatus } from "./InvertableSelectSelectionStatus.js";
/**
 * @internal
 */
export function InvertableSelectStatusBar({ className, selectedItems, getItemTitle, isInverted, selectedItemsLimit, showSelectionStatus = true, }) {
    return (_jsxs(_Fragment, { children: [showSelectionStatus ? (_jsx("div", { className: cx([className, "gd-invertable-select-selection-status", "s-list-status-bar"]), children: _jsx(InvertableSelectStatus, { selectedItems: selectedItems, getItemTitle: getItemTitle, isInverted: isInverted }) })) : null, selectedItems.length >= selectedItemsLimit ? (_jsx(InvertableSelectLimitWarning, { limit: selectedItemsLimit, selectedItemsCount: selectedItems.length })) : null] }));
}
