import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2007-2026 GoodData Corporation
import { FormattedMessage } from "react-intl";
import { Message } from "../../Messages/Message.js";
/**
 * @internal
 */
export function InvertableSelectLimitWarning({ limit, selectedItemsCount, }) {
    return (_jsxs(Message, { type: selectedItemsCount > limit ? "error" : "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 } }))] }));
}
