import { a as IconSize, n as AnalyticsId } from "./constants2.js";
import { t as NotificationBadge_default } from "./NotificationBadge.js";
import classNames from "classnames";
import { jsx } from "react/jsx-runtime";
import badgeStyles from "./components/Badge/styles.module.scss";
var Badge = (props) => {
	const { children, className = "", color = "blueberry", testId, type = "string", notificationVariant = "info", ref } = props;
	const badgeClasses = classNames(badgeStyles.badge, {
		[badgeStyles["badge--blueberry"]]: color === "blueberry",
		[badgeStyles["badge--cherry"]]: color === "cherry",
		[badgeStyles["badge--neutral"]]: color === "neutral"
	}, className);
	if (type === "notification" && notificationVariant !== void 0) return /* @__PURE__ */ jsx(NotificationBadge_default, {
		variant: notificationVariant,
		size: IconSize.XSmall,
		className,
		testId,
		"data-analyticsid": AnalyticsId.Badge
	});
	return /* @__PURE__ */ jsx("span", {
		className: badgeClasses,
		ref,
		"data-testid": testId,
		"data-analyticsid": AnalyticsId.Badge,
		children
	});
};
var Badge_default$1 = Badge;
export { Badge_default$1 as t };

//# sourceMappingURL=Badge.js.map