import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2007-2025 GoodData Corporation
import { FormattedMessage } from "react-intl";
import { Message } from "../../Messages/index.js";
/**
 * @internal
 */
export function InvertableSelectLimitWarning(props) {
    const { limit, selectedItemsCount } = props;
    return (_jsxs(Message, { type: "warning", className: "gd-invertable-list-limitExceeded", children: [selectedItemsCount === limit && (_jsx(FormattedMessage, { id: "gs.list.limitReached", values: { limit } })), selectedItemsCount > limit && (_jsx(FormattedMessage, { id: "gs.list.cannotSelectMoreValues", values: { limit } }))] }));
}
//# sourceMappingURL=InvertableSelectLimitWarning.js.map