import{__rest as s}from"../../../_virtual/_tslib.js";import t from"react";import{camelCase as o}from"es-toolkit";import{getStyle as e}from"../../helpers/typesciptCssModulesHelper.js";import{getTestId as r,ComponentDefaultTestId as a}from"../../tests/testIds.js";import i from"classnames";import{AvatarSize as m}from"./AvatarConstants.js";import c from"./AvatarBadge.module.scss.js";import{withStaticPropsWithoutForwardRef as n}from"../../types/withStaticProps.js";import"../../utils/colors-vars-map.js";import d from"../../../components/icon/dist/Icon/Icon.js";import l from"../../../components/icon/dist/Icon/CustomSvgIcon/CustomSvgIcon.js";var p=n((function(m){var n=m.src,p=m.icon,f=m.tabIndex,j=void 0===f?0:f,u=m.className,v=m.size,I=void 0===v?"large":v,b=m.id,g=m["data-testid"],A=s(m,["src","icon","tabIndex","className","size","id","data-testid"]),C=i(e(c,o("badge--"+I)),u),N=g||r(a.AVATAR_BADGE,b);return p?t.createElement(d,Object.assign({icon:p,className:C},A,{"data-testid":N})):n?t.createElement(l,Object.assign({src:n,className:C,clickable:-1===j},A,{"data-testid":N})):null}),{sizes:m});export{p as default};
//# sourceMappingURL=AvatarBadge.js.map
